-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
35 lines (29 loc) · 1.59 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
<project name="Smocker" default="release" basedir=".">
<property name="srcWildFlyNoWar" value="fatWildFly/wildfly-13.0.0.Final-Smocker.zip"/>
<property name="distribDir" value="distrib"/>
<property name="destClient" value="distrib/smockerClient.zip"/>
<property name="targetClientFolder" value="smockerAgent1.7/target"/>
<property name="targetClientJar" value="smockerAgent1.7-1.0-SNAPSHOT.jar"/>
<property name="libClientFolder" value="smockerAgent1.7/lib"/>
<property name="libClientJar" value="javassist.jar"/>
<property name="warSmocker" value="smockerVaadin/target/smocker-1.0-SNAPSHOT.war"/>
<property name="warSmockerName" value="smocker-1.0-SNAPSHOT.war"/>
<target name="release">
<zip destfile="${srcWildFlyNoWar}" update="true">
<zipfileset dir="smockerVaadin\target" includes="*.war" prefix="wildfly-13.0.0.Final-Smocker\standalone\deployments"/>
</zip>
<copy file="${srcWildFlyNoWar}" todir="${distribDir}"/>
<zip destfile="${destClient}">
<zipfileset dir="${targetClientFolder}" includes="${targetClientJar}" prefix="smockerClient"/>
<zipfileset dir="${libClientFolder}" includes="${libClientJar}" prefix="smockerClient"/>
</zip>
</target>
<target name="dockerPrepare">
<mkdir dir="docker/temp"/>
<unzip src="${warSmocker}" dest="docker/temp"/>
<delete file="docker/temp/WEB-INF/lib/j2v8_win32_x86_64-4.6.0.jar"></delete>
<copy file="libJ2V8Linux/j2v8_linux_x86_64-4.8.0.jar" todir="docker/temp/WEB-INF/lib"/>
<zip destfile="docker/${warSmockerName}" basedir="docker/temp"/>
<delete dir="docker/temp"/>
</target>
</project>