mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-23 05:40:30 +03:00
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:
parent
3988fe9724
commit
3d8cc81ced
@ -2,40 +2,59 @@
|
||||
<project basedir="." default="build" name="org.mibew.notifier">
|
||||
<property environment="env"/>
|
||||
<property name="debuglevel" value="source,lines,vars"/>
|
||||
<property name="target" value="1.6"/>
|
||||
<property name="source" value="1.6"/>
|
||||
<property name="osxJarPath" value="Mibew Notifier.app/Contents/Resources/Java"/>
|
||||
<property name="projectJar" value="org.mibew.notifier.jar"/>
|
||||
<property name="projectVersion" value="1.00"/>
|
||||
|
||||
|
||||
<target name="init">
|
||||
<mkdir dir="bin"/>
|
||||
</target>
|
||||
<target name="clean">
|
||||
<delete dir="bin"/>
|
||||
<delete file="${projectJar}"/>
|
||||
<delete>
|
||||
<fileset dir="${osxJarPath}">
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</delete>
|
||||
</target>
|
||||
<target depends="init" name="build">
|
||||
<echo message="${ant.project.name}: ${ant.file}"/>
|
||||
<copy includeemptydirs="false" todir="bin">
|
||||
<fileset dir="../src" excludes="**/*.java, **/*.ini"/>
|
||||
</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"/>
|
||||
<classpath>
|
||||
<fileset dir="../libs">
|
||||
<include name="**/*.jar"/>
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</classpath>
|
||||
</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"/>
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="org.mibew.trayapp.NotifyApp"/>
|
||||
<attribute name="Implementation-Version" value="${projectVersion}"/>
|
||||
<attribute name="Built-Date" value="${TODAY}"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
<target depends="build" name="package">
|
||||
<copy includeemptydirs="false" todir="Mibew Notifier.app/Contents/Resources/Java">
|
||||
<target depends="build" name="packageOSX">
|
||||
<copy includeemptydirs="false" todir="${osxJarPath}">
|
||||
<fileset dir="../libs">
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
<fileset file="${projectJar}"/>
|
||||
</copy>
|
||||
<exec executable="/Developer/Tools/SetFile">
|
||||
<arg value="-a"/>
|
||||
<arg value="B"/>
|
||||
<arg value="Mibew Notifier.app"/>
|
||||
</exec>
|
||||
</target>
|
||||
</project>
|
||||
|
Loading…
Reference in New Issue
Block a user