• R/O
  • SSH
  • HTTPS

copper:


File Info

Rev. 1560
Size 1,609 bytes
Time 2018-06-11 12:03:10
Author miyabe
Log Message

(empty log message)

Content

<?xml version="1.0" encoding="UTF-8"?>

<project default="release">
	<property name="encoding" value="UTF-8" />
	<property file="local.properties" />
	
	<path id="lib.path">
		<fileset dir="lib" includes="**/*.jar"/>
		<fileset dir="${jre.dir}/lib/ext/" includes="jfxrt.jar"/>
	</path>

	<target name="clean">
		<delete dir="build" />
	</target>

	<target name="compile">
		<mkdir dir="build/classes" />
		<javac destdir="build/classes" classpathref="lib.path" encoding="${encoding}" target="1.8" source="1.8" includeantruntime="false" optimize="on" debug="on">
			<src path="src" />
		</javac>
	</target>

	<target name="jars" depends="compile">
		<mkdir dir="build" />
		<jar destfile="build/CopperReader.jar" index="yes">
			<fileset dir="build/classes" includes="**/*" />
			<fileset dir="src/main" excludes="**/*.java" />
			<manifest>
				<attribute name="Main-Class" value="net.zamasoft.reader.ReaderApplication" />
			</manifest>
		</jar>
	</target>
	
	<target name="release" depends="jars">
		<mkdir dir="build/release" />
		<copy todir="build/release/lib">
		    <fileset dir="lib"/>
		</copy>
		<copy todir="build/release/resources">
		    <fileset dir="resources"/>
		</copy>

		<taskdef name="launch4j" classname="net.sf.launch4j.ant.Launch4jTask" classpath="tools/launch4j/launch4j.jar
		        :tools/launch4j/lib/xstream.jar" />
		<launch4j configFile="runtime/win/CopperReaderFX.xml" />
		
		<mkdir dir="build/release/runtime" />
		<copy todir="build/release/runtime/jre">
		    <fileset dir="${jre.dir}"/>
		</copy>
	</target>
</project>
Show on old repository browser