I'm fairly new to ant, so I'm soliciting critique on what I have so
far. Test16.java imports Tidy.jar, otherwise the source code is
straightforward. I'm particularly interested in naming conventions.
[EMAIL PROTECTED] java]$
[EMAIL PROTECTED] java]$ cat build.xml
<project name="XHTML" default="package">
<import file="properties.xml" />
<target name="clean">
<delete dir="${outputDir}" />
</target>
<target name="prepare" depends="clean">
<mkdir dir="${outputDir}" />
</target>
<target name="compile" depends="prepare">
<javac
srcdir ="${sourceDir}"
destdir ="${outputDir}"
classpath ="${includeJar}"
/>
</target>
<target name="package" depends="compile">
<jar jarfile="${outputDir}/${mainClass}.jar"
basedir="${outputDir}" >
<manifest>
<attribute name="Main-Class"
value="${pkgPath}${mainClass}"/>
</manifest>
</jar>
</target>
</project>
[EMAIL PROTECTED] java]$ cat properties.xml
<project name="properties">
<property name="outputDir" value="/home/thufir/java/bin/" />
<property name="sourceDir" value="/home/thufir/java/src/" />
<property name="mainClass" value="Test16" />
<property name="pkgPath" value="atreides.tidyXhtml." />
<property name="includeJar" value="/home/thufir/java/lib/Tidy.jar" />
<property name="user.name" value="thufir" />
</project>
[EMAIL PROTECTED] java]$
thanks,
Thufir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]