This repository has been archived by the owner on Jul 27, 2018. It is now read-only.
forked from vertigo-io/vertigo-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-renaming-tool.xml
104 lines (88 loc) · 5.43 KB
/
update-renaming-tool.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
<!-- ====================================================================== -->
<project name="Vertigo Update Renaming Tool" default="">
<!-- =================================================================== -->
<!-- Proprietes -->
<!-- =================================================================== -->
<property name="src.encoding" value="utf8"/>
<property name="src.path" value="."/>
<!-- ====================================================================== -->
<!-- Generation des classes de tests -->
<!-- ====================================================================== -->
<target name="0.8.2 to 0.8.3" description="Usefull renames from 0.8.2 to 0.8.3">
<echo message="Renamed in *.ksp : io.vertigo.dynamox.search.DslListFilterBuilderDefaultListFilterBuilder to io.vertigo.dynamox.search.DslListFilterBuilderDslListFilterBuilder" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="io.vertigo.dynamox.search.DefaultListFilterBuilder" value="io.vertigo.dynamox.search.DslListFilterBuilder">
<include name="**/*.ksp"/>
</replace>
</target>
<target name="0.8.1 to 0.8.2" description="Usefull renames from 0.8.1 to 0.8.2">
<echo message="Renamed in *.xml : io.vertigo.vega.rest.engine.GoogleJsonEngine to io.vertigo.vega.engines.webservice.json.GoogleJsonEngine" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="import io.vertigo.vega.rest." value="import io.vertigo.vega.webservice." >
<include name="**/*.xml"/>
</replace>
<echo message="Renamed in *.java : import io.vertigo.vega.rest.* to io.vertigo.vega.webservice.*" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="import io.vertigo.vega.rest." value="import io.vertigo.vega.webservice." >
<include name="**/*.java"/>
</replace>
<echo message="Renamed in *.java : "vertigo.rest.Session" to "vertigo.webservice.Session"" />
<replace dir="${src.path}" encoding="${src.encoding}"
token=""vertigo.rest.Session"" value=""vertigo.webservice.Session"" >
<include name="**/*.java"/>
</replace>
<echo message="Renamed in *.java : extends DefaultSearchLoader to extends AbstractSqlSearchLoader" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="extends DefaultSearchLoader" value="extends AbstractSqlSearchLoader" >
<include name="**/*.java"/>
</replace>
<echo message="Renamed in *.xml : io.vertigo.vega.plugins.rest.* to io.vertigo.vega.plugins.webservice.*" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="io.vertigo.vega.plugins.rest." value="io.vertigo.vega.plugins.webservice." >
<include name="**/*.xml"/>
</replace>
<echo message="Renamed in *.xml : io.vertigo.vega.impl.rest.* to io.vertigo.vega.impl.webservice.*" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="io.vertigo.vega.impl.rest." value="io.vertigo.vega.impl.webservice." >
<include name="**/*.xml"/>
</replace>
<echo message="Renamed in *.xml : XxxxRestHandlerPlugin to XxxxWebServiceHandlerPlugin" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="RestHandlerPlugin" value="WebServiceHandlerPlugin" >
<include name="**/*.xml"/>
</replace>
<echo message="Renamed in *.java : import io.vertigo.vega.webservice.RestfulService to import io.vertigo.vega.webservice.WebServices" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="import io.vertigo.vega.webservice.RestfulService" value="import io.vertigo.vega.webservice.WebServices" >
<include name="**/*.java"/>
</replace>
<echo message="Renamed in *.java : implements RestfulService to implements WebServices" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="implements RestfulService" value="implements WebServices" >
<include name="**/*.java"/>
</replace>
<echo message="Renamed in web.xml io.vertigo.vega.impl.rest.servlet.ApplicationServletContextListener to io.vertigo.vega.impl.webservice.servlet.AppServletContextListener" />
<replace dir="${src.path}" encoding="${src.encoding}"
token="io.vertigo.vega.impl.rest.servlet.ApplicationServletContextListener" value="io.vertigo.vega.impl.webservice.servlet.AppServletContextListener" >
<include name="**/web.xml"/>
</replace>
<echo message="Replaced in web.xml spark.servlet.SparkFilter and application by a new VegaSparkFilter" />
<replaceregexp dir="${src.path}" encoding="${src.encoding}" flags="gis" byline="false"
value="io.vertigo.vega.plugins.webservice.webserver.sparkjava.VegaSparkFilter" >
<include name="**/web.xml"/>
<regexp><![CDATA[<filter-name>SparkFilter</filter-name>
([ \t]+?)<filter-class>spark.servlet.SparkFilter</filter-class>
([ \t]+?)<init-param>
([ \t]+?)<param-name>applicationClass</param-name>
([ \t]+?)<param-value>io.vertigo.vega.plugins.rest.routesregister.sparkjava.VegaSparkApplication</param-value>
([ \t]+?)</init-param>]]></regexp>
<substitution><![CDATA[<filter>
([ \t]+?)<filter-name>SparkFilter</filter-name>
([ \t]+?)<filter-class>io.vertigo.vega.plugins.webservice.webserver.sparkjava.VegaSparkFilter</filter-class>
([ \t]+?)</filter>]]></substitution>
</replaceregexp>
</target>
</project>