|
Ant example source code file (antclassloader.xml)
The antclassloader.xml source code<project name="antclassloader-test" basedir="."> <property name="tmp.dir" location="tmp space"/> <!-- ant for germans --> <property name="tmp.dir.nonascii" value="ãnt"/> <property name="ext.dir.relative" value="ext"/> <property name="main.jar" location="${tmp.dir}/main.jar"/> <property name="ext.jar.relative" value="${ext.dir.relative}/ext.jar"/> <property name="ext.jar" location="${tmp.dir}/${ext.jar.relative}"/> <property name="build.sysclasspath" value="first"/> <property name="main.jar.nonascii" location="${tmp.dir.nonascii}/main.jar"/> <property name="ext.jar.nonascii" location="${tmp.dir.nonascii}/${ext.jar.relative}"/> <target name="setup" depends="setup.withspace,setup.nonascii"/> <target name="setup.withspace"> <mkdir dir="${tmp.dir}/${ext.dir.relative}"/> <jar destfile="${main.jar}" whenempty="create"> <manifest> <attribute name="Class-Path" value="${ext.jar.relative}"/> </manifest> </jar> <jar destfile="${ext.jar}"/> </target> <target name="setup.nonascii"> <mkdir dir="${tmp.dir.nonascii}/${ext.dir.relative}"/> <jar destfile="${main.jar.nonascii}" whenempty="create"> <manifest> <attribute name="Class-Path" value="${ext.jar.relative}"/> </manifest> </jar> <jar destfile="${ext.jar.nonascii}"/> </target> <target name="cleanup"> <delete dir="${tmp.dir}" quiet="true"/> <delete dir="${tmp.dir.nonascii}" quiet="true"/> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant antclassloader.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.