What can a scripting language do? Let's talk about ant, Maven, And Gant.

Source: Internet
Author: User

I also used some scripting languages a little. However, as my colleague gave me the impression, the scripting language seems to have never been named correctly. It seems that it is always synonymous with cool and cool. I am working on a portal website with some companies and some developers around me. I always look down on the skills on the page, but I don't know the user experience (maybe I am referring to UCD) it is precisely the most influential part for users. For portal, it is better than function. Similarly, scripting plays a seemingly insignificant but very important role.

What can a scripting language do? What is appropriate? What you can think of is always agile, fast, and lightweight. To put it bluntly, we can free people from heavy repetitive work. In addition, it is suitable for running on the client, does it make some simple parsing and assistance to the user experience? Isn't it because it is agile, fast, and lightweight?

Today, I will not talk about JavaScript and VBScript on the browser side, or bat and shell on the operating system. I will talk about ant, Maven, And Gant.

Ant is the most widely used language. It is well-organized, hierarchical, and logical when writing any language. Ant is also the scripting language that was born earlier. In fact, strictly speaking, ant is just a series of defined tags. It is very simple syntax. You just need to nest one tag and use it together. Later I was able to access some dynamic languages, such as Perl and Ruby, which were much lighter than ant.

Ant often uses the following features: copy and paste, and package (JAR/war/tar/zip), compile, concact, and SQL (this is not easy to use, often Use ant to call sqlplus instead), javadoc, loadproperties, FTP, ssh, and JUnit.

I often use ant extension plug-ins, including SVN plug-ins, XML plug-ins, and contrib plug-ins (mainly logical capabilities, such as if and for, which are not supported by ant by default ).

When managing projects, ant is often used to write scripts, which facilitates packaging, verification, database migration, deployment, update, testing, and other work. The degree of maturity of automated scripts is as follows, it also marks the maturity of the project to a certain extent.

Maven is a software project management tool based on the project Object Model (POM). You can use a short description to manage project construction, reports, and documents. So strictly speaking, Maven has long gone beyond the concept of scripting language and is a tool that truly applies to engineering and project management.

Http://maven.apache.org/

Using the example on the official website, we can see that getting started is also very simple. In the future, I will write an article on getting started with Maven:

Here is a comparison between Maven and ant:

As mentioned above, ant building rules are usually static. Unless script ant is used, I think the contrib plug-in can also be used, but I don't know how this plug-in is implemented.

Example of a script ant:

For more information, see.

Now ant and Maven are still not separated from XML constraints, and Gant is different. Gant is an ant-based build tool. It uses groovy scripts instead of XML to write the build logic. Gant relies entirely on Ant tasks for real tasks. Therefore, if you use ant to build files, but do not like to build files using XML, Gant is a good choice.

Here is a simple tutorial: http://blog.csdn.net/yangvlive/archive/2008/08/31/2854325.aspx;

Official Website: http://gant.codehaus.org/

As you can see, Gant is writing groovy scripts. Gog, which has been studied for a while, can be understood here.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.