forked from mvmn/gp2srv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgentemplateslist.xml
19 lines (19 loc) · 916 Bytes
/
gentemplateslist.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="gentemplateslist">
<fileset dir="./src/main/resources/x/mvmn/gp2srv/web/templates" id="vmfiles">
<include name="**/*.vm" />
<!-- exclude name="test.vm" /-->
<exclude name="VM_global_library.vm" />
<exclude name="templates_list.properties" />
</fileset>
<property name="vmfiles" refid="vmfiles" />
<target name="build">
<echo file="./src/main/resources/x/mvmn/gp2srv/web/templates/templates_list.properties">${vmfiles}</echo>
<property name="linebreak">${line.separator}</property>
<replaceregexp flags="g" file="./src/main/resources/x/mvmn/gp2srv/web/templates/templates_list.properties" match="([^;]+)(?:;|$)" replace="\1=\1${linebreak}" />
<echo>Generation complete</echo>
<concat>
<file name="./src/main/resources/x/mvmn/gp2srv/web/templates/templates_list.properties" />
</concat>
</target>
</project>