This commit is contained in:
Jason van Zyl 2005-10-03 16:56:50 +00:00
parent fb3e57818c
commit b5c400b7b8
5 changed files with 22 additions and 2 deletions

View File

@ -202,7 +202,7 @@ Compiling 1 source file to /tmp/my-app/target/classes
standard conventions the POM above is very small and you haven't explicity had to tell Maven where any of
your sources are or where the output should go. By following the standard Maven conventions you can get
a lot done with very little effort! Just as a comparison lets take a look at what you might have had to do
in {{{http://ant.apache.org}Ant}} to accomplish the same {{{ant/build-a1.xml}thing}}.
in {{{http://ant.apache.org}Ant}} to accomplish the same {{{../../ant/build-a1.xml}thing}}.
Now this is simply to compile a single application source and the Ant script shown is pretty much the same
size as the POM shown above. But we'll see how much more we can do with just that simple POM above!

View File

@ -7,6 +7,11 @@
<src>
<pathelement location="src/main/java"/>
</src>
<classpath>
<fileset dir="${libdir}">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
</project>

View File

@ -8,6 +8,11 @@
<src>
<pathelement location="src/main/java"/>
</src>
<classpath>
<fileset dir="${libdir}">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="test-compile">
@ -18,7 +23,7 @@
</src>
<classpath>
<fileset dir="${libdir}">
<include name="junit-3.8.1.jar"/>
<include name="*.jar"/>
</fileset>
</classpath>
</javac>

View File

@ -5,6 +5,11 @@
<src>
<pathelement location="src/main/java"/>
</src>
<classpath>
<fileset dir="${libdir}">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="test-compile" description="o Compile the code" depends="get-deps">

View File

@ -5,6 +5,11 @@
<src>
<pathelement location="src/main/java"/>
</src>
<classpath>
<fileset dir="${libdir}">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="test-compile" description="o Compile the code" depends="get-deps">