chiark / gitweb /
reenable pctb uploads with new PCTB protocol version number 005y
[jarrg-ian.git] / src / PCTB.xml
index 72a093b..4543b7d 100644 (file)
@@ -1,8 +1,10 @@
-<project name="MarketUploader" default="jar">
+<project name="MarketUploader" default="all">
        <property name="src" location="."/>
        <property name="build" location="build"/>
        <property name="rootdir" location="."/>
        
+       <target name="all" depends="init,compile,jar,wininst" />
+
        <target name="init">
                <mkdir dir="${build}"/>
        </target>
        </target>
        
        <target name="jar" depends="compile">
-               <jar jarfile="${build}/PCTB-ControlPanel.jar">
+               <jar jarfile="${src}/../PCTB-ControlPanel.jar">
                        <manifest>
                                <attribute name="Main-Class" value="com.tedpearson.ypp.market.ControlPanel"/>
                        </manifest>
                        <fileset dir="${build}" includes="**/ControlPanel*"/>
                </jar>
-               <jar jarfile="${build}/PCTB-Uploader.jar">
+               <jar jarfile="${src}/../PCTB-Uploader.jar">
                        <fileset dir="${src}" includes="com/sun/**" />
                        <fileset dir="${build}" includes="**/Market*.class"/>
                        <fileset dir="${build}" includes="com/myjavatools/**, com/tedpearson/util/update/*.class"/>
                </jar>
-               <jar jarfile="${rootdir}/PCTB-Installer.jar">
-                       <manifest>
-                               <attribute name="Main-Class" value="com.tedpearson.ypp.market.Installer"/>
-                       </manifest>
-                       <fileset dir="${build}" includes="**/Installer*.class, *.jar" excludes="ControlPanel*"/>
-                       <fileset dir="${build}" includes="com/tedpearson/util/update/*.class"/>
-                       <zipfileset prefix="lib" dir="${src}" includes="elevate.*"/>
-                       <zipfileset prefix="src" dir="${rootdir}" includes="com/tedpearson/ypp/market/*.java, com/tedpearson/util/update/*.java, com/myjavatools/web/*.java,  PCTB.xml"/>
-               </jar>
-
        </target>
-       
-       <target name="run" depends="jar">
-               <java jar="${rootdir}/PCTB-Installer.jar" fork="true"/>
+
+       <target name="wininst" depends="jar">
+               <exec executable="makensis" dir="${src}/..">
+                     <arg value="-NOCD" />
+                     <arg value="${src}/winsetup.nsi" />
+               </exec>
        </target>
+
 </project>