|
2 | 2 |
|
3 | 3 | <taskdef resource="net/sf/antcontrib/antlib.xml"/> |
4 | 4 | <property file="build.properties" prefix="v"/> |
5 | | - |
6 | | - <property name="www" value="${v.www}-${v.tools}"/> |
7 | | - <property name="js" value="${www}/js"/> |
8 | 5 | <property name="build" value="build/${v.tools}"/> |
9 | 6 |
|
10 | 7 | <!-- replace @VERSION and @DATE tags --> |
|
25 | 22 |
|
26 | 23 | <sequential> |
27 | 24 |
|
28 | | - <!-- version number --> |
29 | | - <propertyregex property="tool" input="@{file}" override="yes" replace="\1" |
30 | | - regexp=".+/(.*)\.js"/> |
31 | | - |
32 | | - <propertycopy name="version" from="v.${tool}" override="yes"/> |
33 | | - |
34 | | - <replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" |
35 | | - file="@{file}" /> |
36 | | - |
| 25 | + <!-- version number --> |
| 26 | + <replaceregexp match="@VERSION" replace="${v.tools}" byline="true" file="@{file}" /> |
37 | 27 |
|
38 | 28 | <!-- last modified (via <git log> command) --> |
39 | 29 | <propertyregex property="source" input="@{file}" override="yes" replace="\1" |
40 | 30 | regexp=".+/\d.\d.\d/(.*)\.js"/> |
41 | 31 |
|
42 | 32 | <exec executable="git" outputproperty="git.log" > |
43 | | - <arg line="log src/${source}.js"/> |
| 33 | + <arg line="log -1 src/${source}.js"/> |
44 | 34 | </exec> |
45 | 35 |
|
46 | 36 | <propertyregex property="date" input="${git.log}" select="\1"> |
|
76 | 66 |
|
77 | 67 | </target> |
78 | 68 |
|
79 | | - <!-- copy stuff under web folder --> |
80 | | - <target name="www"> |
81 | | - |
82 | | - <!-- documentation --> |
83 | | - <mkdir dir="${www}"/> |
84 | | - <copy todir="${www}"> |
85 | | - <fileset dir="www"/> |
86 | | - </copy> |
87 | | - |
88 | | - </target> |
89 | | - |
90 | | - <!-- deploy --> |
91 | | - <target name="deploy" depends="www"> |
92 | | - |
93 | | - <!-- zip --> |
94 | | - <zip destfile="${build}/tools-${v.tools}.zip" |
95 | | - basedir="${build}" |
96 | | - excludes="*.zip" /> |
97 | | - |
98 | | - <!-- javascript --> |
99 | | - <mkdir dir="${js}"/> |
100 | | - <copy todir="${js}"> |
101 | | - <fileset dir="${build}"/> |
102 | | - </copy> |
103 | | - |
104 | | - <!-- properties --> |
105 | | - <copy file="build.properties" tofile="${www}/../WEB-INF/tools.properties"/> |
106 | | - |
107 | | - </target> |
108 | | - |
109 | | - |
110 | 69 | </project> |
111 | 70 |
|
112 | 71 |
|
|
0 commit comments