This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
82 lines (69 loc) · 4.91 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<project name="TenShell 2" basedir=".">
<!-- set global properties for this build -->
<property name="name" location="TenShell 2"/>
<property name="build" location="build"/>
<property name="dist" location="build/dist"/>
<property name="launch4j.dir" location="C:\Program Files (x86)\DevelNext\tools\Launch4j" />
<property name="jre.dir" location="C:\Program Files (x86)\DevelNext\tools\jre" />
<taskdef name="launch4j"
classname="net.sf.launch4j.ant.Launch4jTask"
classpath="${launch4j.dir}/launch4j.jar
:${launch4j.dir}/lib/xstream.jar" />
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="jar" depends="init" description="generate the distribution">
<mkdir dir="${dist}/lib"/>
<jar destfile="${dist}/lib/dn-compiled-module.jar" encoding="UTF-8" level="7">
<fileset dir='src_generated' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
<fileset dir='src' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
<fileset dir='vendor/ide.bundle.std.JPHPDesktopDebugBundle' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
<fileset dir='vendor/ide.bundle.std.JPHPCoreBundle' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
<fileset dir='vendor/ide.bundle.std.JPHPRuntimeBundle' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
<fileset dir='vendor/ide.bundle.std.JPHPJsonBundle' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
<fileset dir='vendor/ide.bundle.std.JPHPXmlBundle' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
<fileset dir='vendor/ide.bundle.std.UIDesktopBundle' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
<fileset dir='vendor/develnext.bundle.game2d.Game2DBundle' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
<fileset dir='vendor/develnext.bundle.httpclient.HttpClientBundle' excludes='.debug/** **/*.source **/*.sourcemap **/*.axml' erroronmissingdir='false'/>
</jar>
</target>
<target name="dist" depends="jar" description="">
</target>
<target name="onejar" depends="dist">
<jar destfile="${dist}/TenShell 2.jar" duplicate="preserve" level="7" encoding="UTF-8">
<fileset dir="${dist}/gen" />
<zipfileset src="${dist}/lib/dn-compiled-module.jar" />
<zipfileset src='${dist}/lib/asm-all.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/jphp-core.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/jphp-runtime.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/dn-php-sdk.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/gson.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/jphp-json-ext.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/jphp-xml-ext.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/jphp-gui-ext.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/jphp-desktop-ext.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/jphp-zend-ext.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/jphp-app-framework.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/dyn4j.jar' excludes='JPHP-INF/sdk/** ' /> <zipfileset src='${dist}/lib/jphp-game-ext.jar' excludes='JPHP-INF/sdk/** ' />
<manifest>
<attribute name="Main-Class" value="php.runtime.launcher.Launcher" />
</manifest>
</jar>
<delete dir="${dist}/gen" failonerror="false" />
<delete dir="${dist}/lib" failonerror="false" />
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
</target>
<target name="copy-jre">
<mkdir dir="${dist}/jre" />
<copy todir="${dist}/jre" >
<fileset dir="${jre.dir}" includes="**"/>
</copy>
</target>
<target name="launch4j">
<launch4j>
<config headerType="gui" outfile="${dist}/TenShell 2.exe"
dontWrapJar="false" jarPath="${dist}/TenShell 2.jar" chdir="."
downloadUrl="http://java.com/download" icon="C:\Users\diman\AppData\Local\Temp\973f8057-22fe-436a-8db4-69f13b204e6f3877006715970189834.ico">
<classPath mainClass="php.runtime.launcher.Launcher">
<cp>lib/*</cp>
</classPath>
<jre minVersion="1.8.0" path="" runtimeBits="64/32">
<opt>-Dfile.encoding=UTF-8</opt>
</jre>
</config>
</launch4j>
<delete file="${dist}/TenShell 2.jar" failonerror="false" />
<delete dir="${dist}/gen" failonerror="false" />
</target>
</project>