update ant file, exclude jars/bin

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@727 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2010-01-17 00:04:31 +00:00
parent 3988fe9724
commit 3d8cc81ced

View File

@ -2,40 +2,59 @@
<project basedir="." default="build" name="org.mibew.notifier"> <project basedir="." default="build" name="org.mibew.notifier">
<property environment="env"/> <property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/> <property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/> <property name="osxJarPath" value="Mibew Notifier.app/Contents/Resources/Java"/>
<property name="source" value="1.6"/> <property name="projectJar" value="org.mibew.notifier.jar"/>
<property name="projectVersion" value="1.00"/>
<target name="init"> <target name="init">
<mkdir dir="bin"/> <mkdir dir="bin"/>
</target> </target>
<target name="clean"> <target name="clean">
<delete dir="bin"/> <delete dir="bin"/>
<delete file="${projectJar}"/>
<delete>
<fileset dir="${osxJarPath}">
<include name="*.jar"/>
</fileset>
</delete>
</target> </target>
<target depends="init" name="build"> <target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}"/> <echo message="${ant.project.name}: ${ant.file}"/>
<copy includeemptydirs="false" todir="bin"> <copy includeemptydirs="false" todir="bin">
<fileset dir="../src" excludes="**/*.java, **/*.ini"/> <fileset dir="../src" excludes="**/*.java, **/*.ini"/>
</copy> </copy>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}"> <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="1.6" target="1.6">
<src path="../src"/> <src path="../src"/>
<classpath> <classpath>
<fileset dir="../libs"> <fileset dir="../libs">
<include name="**/*.jar"/> <include name="*.jar"/>
</fileset> </fileset>
</classpath> </classpath>
</javac> </javac>
<jar destfile="org.mibew.notifier.jar"> <tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<jar destfile="${projectJar}">
<fileset dir="bin"/> <fileset dir="bin"/>
<manifest> <manifest>
<attribute name="Main-Class" value="org.mibew.trayapp.NotifyApp"/> <attribute name="Main-Class" value="org.mibew.trayapp.NotifyApp"/>
<attribute name="Implementation-Version" value="${projectVersion}"/>
<attribute name="Built-Date" value="${TODAY}"/>
</manifest> </manifest>
</jar> </jar>
</target> </target>
<target depends="build" name="package"> <target depends="build" name="packageOSX">
<copy includeemptydirs="false" todir="Mibew Notifier.app/Contents/Resources/Java"> <copy includeemptydirs="false" todir="${osxJarPath}">
<fileset dir="../libs"> <fileset dir="../libs">
<include name="*.jar"/> <include name="*.jar"/>
</fileset> </fileset>
<fileset file="${projectJar}"/>
</copy> </copy>
<exec executable="/Developer/Tools/SetFile">
<arg value="-a"/>
<arg value="B"/>
<arg value="Mibew Notifier.app"/>
</exec>
</target> </target>
</project> </project>