OSDN Git Service

zipファイルを作成
[convbusstop/convbusstop.git] / build.xml
index bea5e1c..1b7457d 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -52,7 +52,7 @@
                <tstamp>
                        <format property="ts" pattern="yyyy/MM/dd-HH:mm:ss-z"/>
                </tstamp>
-        <jar destfile="${dest}/${appname}.jar">
+        <jar destfile="${basedir}/${appname}.jar">
                        <fileset dir="${src}" includes="**/*.png" />
                        <fileset dir="${src}" includes="**/*.gif" />
                        <fileset dir="${src}" includes="**/*.jpg" />
        [STEP 4] デプロイ
        -->
     <target name="deploy" depends="create_run_jar" description="'${appname}.jar'を作成する">
+       <zip zipfile="${appname}.zip">
+           <fileset dir="${basedir}" includesfile="${appname}.jar"/>
+           <fileset dir="${src}" includesfile="ConvBusstop.bat"/>
+           <fileset dir="${src}" includesfile="database.properties"/>
+       </zip>
                <copy preservelastmodified="true" todir="${dest}">
                        <fileset file="${src}/ConvBusstop.bat"/>
-                       <fileset file="${src}/expBusstop.bat"/>
                        <fileset file="${src}/database.properties" />
                </copy>
     </target>