Newer
Older
adjustgpx-core / importPicture / build.xml
@Yu Hayashi Yu Hayashi on 30 Jun 2014 2 KB 名称を「AjastTime」に変更
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE configuration>
<project name="AdjustTime" default="all" basedir=".">

	<target name="all" depends="release">
	</target>

	<!--
	ソース以外にビルドに必要なライブラリ
	-->
	<tstamp>
		<format property="verdate" pattern="yyyyMMdd"/>
	</tstamp>
    <property name="src" value="${basedir}/src" />
    <property name="classes" value="${basedir}/classes" />
	<property name="deploy" value="${basedir}/deploy" />
	<property name="appname" value="AdjustTime"></property>
	<property name="version" value="${verdate}"></property>


	<!--
	Java Doc
	-->
	<target name="javadoc">
	  <javadoc sourcepath="src"
	    encoding="UTF-8"
	    packagenames="*"
	    Windowtitle="${appname}"
	    doctitle="${appname}"
	    docencoding="UTF-8"
	    bottom=""
	    Author="true"
	    destdir="api">
	    	<classpath>
				<pathelement path="${src}"/>
			</classpath>
	  	</javadoc>
	</target>

	<!--
	[STEP 1] クリーンナップ
	 -->
	<target name="clean" description="前回作成したclassファイルを削除する">
		<delete>
			<fileset dir="${classes}" includes="**/*.class" />
			<fileset dir="${src}" includes="**/*.class" />
		</delete>
	</target>

	<!--
	[STEP 2] コンパイル
	 -->
	<target name="compile_src" description="コンパイル src">
	    <javac 	debug="on" srcdir="${src}" destdir="${classes}" encoding="UTF-8" includeantruntime="false">
			<include name="**" />
	    	<exclude name="**/*.smap" />
	    	<classpath>
				<pathelement path="${src}"/>
			</classpath>
		</javac>
	</target>

	<!--
	[STEP 3] リンク
	 -->
    <target name="create_run_jar" depends="compile_src" description="'${appname}.jar'を作成する">
		<tstamp>
			<format property="ts" pattern="yyyy-MM-dd-HH:mm:ss-z"/>
		</tstamp>
		<jar destfile="${appname}.jar" >
			<manifest>
			  <attribute name="Main-Class" value="osm.jp.gpx.matchtime.gui.AdjustTime" />
			  <attribute name="Class-Path" value="${jar.runtime.classpath}" />
			  <attribute name="Implementation-Title"   value="${appname}" />
			  <attribute name="Implementation-Version" value="${ts}" />
			  <attribute name="Implementation-Vendor"  value="${hayashi}" />
			  <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}])" />
			</manifest>
			<zipfileset dir="${classes}"/>
			<zipfileset dir="${src}"/>
        </jar>
    </target>


	<!--
	[STEP 4] Deployment
	 -->
    <target name="release" depends="create_run_jar" description="'${deploy}/${appname}.zip'を作成する">
    	<zip destfile="${deploy}/${appname}.zip">
    		<fileset dir="." includes="${appname}.jar"/>
    		<fileset dir="." includes="README.jp.txt"/>
    		<fileset dir="." includes="LICENSE.txt"/>
    		<fileset dir="." includes="${appname}.bat"/>
    		<fileset dir="." includes="${appname}.sh"/>
		</zip>
    </target>
</project>