-
Notifications
You must be signed in to change notification settings - Fork 11
/
openspcoop2-batchStatistiche-distrib.xml
executable file
·94 lines (76 loc) · 4.19 KB
/
openspcoop2-batchStatistiche-distrib.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
<project name="openspcoop2-distrib-batchStatistiche">
<description>
Produzione del batch
</description>
<import file="${openspcoop2}/ant/commons/utils.xml" />
<!-- estensione di ant (if .... ) -->
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${required_lib}/ant/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<!-- Crea la distribuzione del batch -->
<target name="distrib_openspcoop2_batchStatistiche" description="Crea la distribuzione del batch">
<delete dir="${distrib_batchStatistiche}"/>
<mkdir dir="${distrib_batchStatistiche}"/>
<copy todir="${distrib_batchStatistiche}/properties">
<fileset dir="${properties_batchStatistiche}"/>
</copy>
<copy todir="${distrib_batchStatistiche}/lib">
<fileset dir="${dist_batchStatistiche}" includes="openspcoop2_*.jar"/>
</copy>
<copy todir="${distrib_batchStatistiche}/lib">
<fileset dir="${openspcoop2.dist}" includes="openspcoop2_*.jar"/>
</copy>
<copy todir="${distrib_batchStatistiche}/lib" flatten="true">
<fileset dir="${openspcoop2.lib}" includes="log/*"/>
<fileset dir="${openspcoop2.lib}" includes="commons/commons-collections-*.jar"/>
<fileset dir="${openspcoop2.lib}" includes="commons/commons-lang-2.6.jar"/>
<fileset dir="${openspcoop2.lib}" includes="commons/commons-codec-1.15.jar"/>
<fileset dir="${openspcoop2.lib}" includes="jax/jaxb-*.jar"/>
<fileset dir="${openspcoop2.lib}" includes="saaj/javax.xml.soap-api-1.4.0.jar"/>
<fileset dir="${openspcoop2.lib}" includes="saaj/saaj-impl-1.5.3-gov4j-1.jar"/>
<fileset dir="${openspcoop2.lib}" includes="shared/jakarta.activation-1.2.2.jar"/>
<fileset dir="${openspcoop2.lib}" includes="shared/joda-time-2.12.0.jar"/>
<fileset dir="${openspcoop2.lib}" includes="shared/xercesImpl-2.12.2.jar"/>
<fileset dir="${openspcoop2.lib}" includes="shared/freemarker-2.3.31.jar"/>
<fileset dir="${openspcoop2.lib}" includes="shared/velocity-*.jar"/>
<fileset dir="${openspcoop2.lib}" includes="security/bcpkix-jdk18on-1.78.1.jar"/>
<fileset dir="${openspcoop2.lib}" includes="security/bcprov-jdk18on-1.78.1.jar"/>
<fileset dir="${openspcoop2.lib}" includes="security/bcutil-jdk18on-1.78.1.jar"/>
<fileset dir="${openspcoop2.lib}" includes="security/xmlsec-2.3.4-gov4j-1.jar"/>
<fileset dir="${openspcoop2.lib}" includes="security/neethi-3.2.0.jar"/>
<fileset dir="${openspcoop2.lib}" includes="security/jasypt-1.9.3.jar"/>
<fileset dir="${openspcoop2.lib}" includes="security/nimbus-jose-jwt-9.37.3.jar"/>
</copy>
<mkdir dir="${distrib_batchStatistiche}/jdbc"/>
<antcall target="-distrib_openspcoop2_batchStatistiche_script">
<param name="TipoStatistiche" value="StatisticheOrarie"/>
</antcall>
<antcall target="-distrib_openspcoop2_batchStatistiche_script">
<param name="TipoStatistiche" value="StatisticheGiornaliere"/>
</antcall>
<antcall target="-distrib_openspcoop2_batchStatistiche_script">
<param name="TipoStatistiche" value="StatisticheSettimanali"/>
</antcall>
<antcall target="-distrib_openspcoop2_batchStatistiche_script">
<param name="TipoStatistiche" value="StatisticheMensili"/>
</antcall>
</target>
<target name="-distrib_openspcoop2_batchStatistiche_script">
<copy file="${script_batchStatistiche}/run.sh" tofile="${distrib_batchStatistiche}/genera${TipoStatistiche}.sh"/>
<antcall target="replace_token">
<param name="file" value="${distrib_batchStatistiche}/genera${TipoStatistiche}.sh"/>
<param name="token" value="TIPOSTATISTICA"/>
<param name="value" value="${TipoStatistiche}"/>
</antcall>
<chmod file="${distrib_batchStatistiche}/genera${TipoStatistiche}.sh" perm="a+x"/>
<copy file="${script_batchStatistiche}/run.cmd" tofile="${distrib_batchStatistiche}/genera${TipoStatistiche}.cmd"/>
<antcall target="replace_token">
<param name="file" value="${distrib_batchStatistiche}/genera${TipoStatistiche}.cmd"/>
<param name="token" value="TIPOSTATISTICA"/>
<param name="value" value="${TipoStatistiche}"/>
</antcall>
<chmod file="${distrib_batchStatistiche}/genera${TipoStatistiche}.cmd" perm="a+x"/>
</target>
</project>