Create build.xml
This commit is contained in:
parent
ffe084e453
commit
d209d956dd
148
apka_StolowkaZPM/build.xml
Normal file
148
apka_StolowkaZPM/build.xml
Normal file
@ -0,0 +1,148 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="JavaFXproject1" default="do-deploy" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant">
|
||||
<target name="init-fx-tasks">
|
||||
<path id="fxant">
|
||||
<filelist>
|
||||
<file name="${java.home}\..\lib\ant-javafx.jar"/>
|
||||
<file name="${java.home}\lib\jfxrt.jar"/>
|
||||
</filelist>
|
||||
</path>
|
||||
|
||||
<taskdef resource="com/sun/javafx/tools/ant/antlib.xml"
|
||||
uri="javafx:com.sun.javafx.tools.ant"
|
||||
classpathref="fxant"/>
|
||||
</target>
|
||||
<target name="setup-staging-area">
|
||||
<delete dir="externalLibs" />
|
||||
<delete dir="project" />
|
||||
<delete dir="projectRefs" />
|
||||
|
||||
<mkdir dir="externalLibs" />
|
||||
|
||||
|
||||
<mkdir dir="project" />
|
||||
<copy todir="project">
|
||||
<fileset dir="C:\Users\Kiki\eclipse-workspace\JavaFXproject1">
|
||||
<include name="src/**" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<mkdir dir="projectRefs" />
|
||||
</target>
|
||||
<target name='do-compile'>
|
||||
<delete dir="build" />
|
||||
<mkdir dir="build/src" />
|
||||
<mkdir dir="build/libs" />
|
||||
<mkdir dir="build/classes" />
|
||||
|
||||
<!-- Copy project-libs references -->
|
||||
<copy todir="build/libs">
|
||||
<fileset dir="externalLibs">
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!-- Copy project references -->
|
||||
|
||||
<!-- Copy project sources itself -->
|
||||
<copy todir="build/src">
|
||||
<fileset dir="project/src">
|
||||
<include name="**/*"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<javac includeantruntime="false" source="1.8" target="1.8" srcdir="build/src" destdir="build/classes" encoding="Cp1250">
|
||||
<classpath>
|
||||
<fileset dir="build/libs">
|
||||
<include name="*"/>
|
||||
</fileset>
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
<!-- Copy over none Java-Files -->
|
||||
<copy todir="build/classes">
|
||||
<fileset dir="project/src">
|
||||
<exclude name="**/*.java"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
|
||||
</target>
|
||||
<target name="do-deploy" depends="setup-staging-area, do-compile, init-fx-tasks">
|
||||
<delete file="dist"/>
|
||||
<delete file="deploy" />
|
||||
|
||||
<mkdir dir="dist" />
|
||||
<mkdir dir="dist/libs" />
|
||||
|
||||
<copy todir="dist/libs">
|
||||
<fileset dir="externalLibs">
|
||||
<include name="*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
|
||||
<fx:resources id="appRes">
|
||||
<fx:fileset dir="dist" includes="JavaFXproject1.jar"/>
|
||||
<fx:fileset dir="dist" includes="libs/*"/>
|
||||
</fx:resources>
|
||||
|
||||
<fx:application id="fxApplication"
|
||||
name="Sto³ówka ZPM"
|
||||
mainClass="application.Main"
|
||||
toolkit="swing"
|
||||
/>
|
||||
|
||||
<mkdir dir="build/classes/META-INF" />
|
||||
|
||||
|
||||
|
||||
<fx:jar destfile="dist/JavaFXproject1.jar">
|
||||
<fx:application refid="fxApplication"/>
|
||||
<fileset dir="build/classes">
|
||||
</fileset>
|
||||
<fx:resources refid="appRes"/>
|
||||
|
||||
<manifest>
|
||||
<attribute name="Implementation-Vendor" value="Sto³ówka ZPM"/>
|
||||
<attribute name="Implementation-Title" value="Sto³ówka ZPM"/>
|
||||
<attribute name="Implementation-Version" value="1.0"/>
|
||||
<attribute name="ZBLI¯ KARTÊ" value="integer"/>
|
||||
<attribute name="PIN" value="integer"/>
|
||||
<attribute name="JavaFX-Feature-Proxy" value="None"/>
|
||||
</manifest>
|
||||
</fx:jar>
|
||||
|
||||
<!-- Need to use ${basedir} because somehow the ant task is calculating the directory differently -->
|
||||
<fx:signjar
|
||||
keystore="kiki"
|
||||
alias="kiki"
|
||||
keypass="kiki"
|
||||
storepass="kiki"
|
||||
destDir="${basedir}/dist">
|
||||
<fileset dir='dist'>
|
||||
<include name='**/*.jar' />
|
||||
</fileset>
|
||||
</fx:signjar>
|
||||
|
||||
<mkdir dir="deploy" />
|
||||
<!-- Need to use ${basedir} because somehow the ant task is calculating the directory differently -->
|
||||
<fx:deploy
|
||||
embedJNLP="false"
|
||||
extension="false"
|
||||
includeDT="false"
|
||||
offlineAllowed="false"
|
||||
outdir="${basedir}/deploy"
|
||||
outfile="JavaFXproject1" nativeBundles="exe"
|
||||
updatemode="background" >
|
||||
|
||||
<fx:platform basedir="${java.home}"/>
|
||||
<fx:info title="JavaFXproject1" vendor="Sto³ówka ZPM"/>
|
||||
|
||||
<fx:application refId="fxApplication"/>
|
||||
<fx:resources refid="appRes"/>
|
||||
<fx:permissions elevated="true"/>
|
||||
</fx:deploy>
|
||||
|
||||
|
||||
</target>
|
||||
</project>
|
Loading…
Reference in New Issue
Block a user