1) Clean up the build directories - TopicsExpress



          

1) Clean up the build directories Here, the “clean” depends attribute references a previous ant target that deletes all these scrub directories. This “prepare” target creates the scrub directories we’re going to use in our build. mkdir creates a directory. 2) Compile all the java files into class file Ant compiles things with the “javac” target. It takes a few parameters and optional flags we can use to customize the actual compile command. This task also copies any properties files into the scrub directory. 3) Package up all the class files into a jar file, or some kind of deployable artifact The “jar” task jars up the contents of a directory. We can add files to the META-INF directory with a file include directive under the “metainf” task as part of the “jar” task. 4) Copy the new jar file to the deploy directory The “ear” task as you can imagine packages up an ear file for deployment. It works very similar to the jar task and offers a few more optional tasks that relate directly to the ear file.
Posted on: Sat, 06 Jul 2013 12:44:21 +0000

Trending Topics



Recently Viewed Topics




© 2015