-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
66 lines (61 loc) · 2.64 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Klang" default="makejar" basedir=".">
<!-- Customize properties below for your installation. -->
<property name="jarFile" value="klang.jar"/>
<property name="antlrFile" value="src/antlr-4.4-complete.jar"/>
<property name="gitDir" value="${basedir}/.."/>
<property name="view_repo" value="${gitDir}/alfresco-view-repo"/>
<property name="view_repo_web_lib" value="${view_repo}/target/mms-repo-war/WEB-INF/lib"/>
<property name="view_repo_lib" value="${view_repo}/src/main/amp/web/WEB-INF/lib"/>
<!-- Customize properties above for your installation. -->
<target name ="makejar" description="Create a jar of k">
<tstamp>
<format property="current.time" pattern="MM/dd/yyyy hh:mm:ss aa" />
</tstamp>
<echo message="started ${current.time}" />
<jar destfile="${jarFile}">
<fileset includes="**/*.class" dir="bin"/>
<!-- <fileset includes="rebel.xml" dir="."/> -->
</jar>
<antcall target="copyjar"/>
<antcall target="copylibs"/>
<tstamp>
<format property="current.time" pattern="MM/dd/yyyy hh:mm:ss aa" />
</tstamp>
<echo message="finished ${current.time}" />
</target>
<target name="copyjar">
<tstamp>
<format property="current.time" pattern="MM/dd/yyyy hh:mm:ss aa" />
</tstamp>
<echo message="started ${current.time}" />
<copy todir="${view_repo_web_lib}" file="${jarFile}" failonerror="false"/>
<copy todir="${view_repo_lib}" file="${jarFile}" failonerror="false"/>
<tstamp>
<format property="current.time" pattern="MM/dd/yyyy hh:mm:ss aa" />
</tstamp>
<echo message="finished ${current.time}" />
</target>
<target name="copylibs">
<tstamp>
<format property="current.time" pattern="MM/dd/yyyy hh:mm:ss aa" />
</tstamp>
<echo message="started ${current.time}" />
<copy todir="${view_repo_web_lib}"><fileset dir="lib"></fileset></copy>
<copy todir="${view_repo_lib}"><fileset dir="lib"></fileset></copy>
<copy todir="${view_repo_web_lib}" file="${antlrFile}" failonerror="false"/>
<copy todir="${view_repo_lib}" file="${antlrFile}" failonerror="false"/>
<!-- <copy todir="${view_repo_web_lib}" file="lib/*" failonerror="false"/>
<copy todir="${view_repo_lib}" file="lib/*" failonerror="false"/> -->
<tstamp>
<format property="current.time" pattern="MM/dd/yyyy hh:mm:ss aa" />
</tstamp>
<echo message="finished ${current.time}" />
</target>
<target name="timestamp2">
<tstamp>
<format property="current.time" pattern="MM/dd/yyyy hh:mm:ss aa" />
</tstamp>
<echo message="${message} ${current.time}" />
</target>
</project>