-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild_copy_jars.xml
53 lines (40 loc) · 1.8 KB
/
build_copy_jars.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
<project default="copy-jars">
<!--
<property name="maven_repo" value="D:\MAVEN\.m2\repository"/>
<property name="VERSION" value="3.2.3" />
-->
<property name="maven_repo" value="C:\Users\laguerin\.m2\repository"/>
<property name="VERSION" value="3.3.0" />
<!-- set "-SNAPSHOT" to copy the current SNAPSHOT or "" to copy the current RELEASE -->
<property name="SNAPSHOT" value="" />
<!--
<property name="SNAPSHOT" value="-SNAPSHOT" />
-->
<property name="lib_dir" value="./lib" />
<property environment="env"/>
<!-- ============================================================================== -->
<target name="copy-jars" >
<!-- MAVEN_HOME is not defined (Maven is not installed on OS)
<echo message="MAVEN_HOME = ${MAVEN_HOME}" />
<echo message="env.MAVEN_HOME = ${env.MAVEN_HOME}" />
-->
<fail message="Environment variable "USERNAME" undefined" unless="env.USERNAME"/>
<echo message="Env "USERNAME" = ${env.USERNAME}" />
<echo message="Maven repository : ${maven_repo}" />
<echo message="Libraries directory : ${lib_dir}" />
<echo message="Delete existing JAR files " />
<delete verbose="true">
<fileset dir="${lib_dir}" includes="telosys-tools-*.jar"/>
</delete>
<echo message="Copy new JAR files " />
<echo message=" from ${maven_repo} ( version ${VERSION} )" />
<echo message=" to ${lib_dir}" />
<copy file="${maven_repo}/org/telosys/telosys-tools-all/${VERSION}${SNAPSHOT}/telosys-tools-all-${VERSION}${SNAPSHOT}.jar"
tofile="${lib_dir}/telosys-tools-all-${VERSION}.jar"
overwrite="true" verbose="true" />
<echo message=" " />
<echo message="-----" />
<echo message="Don't forget to refresh the "${lib_dir}" folder in the Eclipse workspace (F5)" />
<echo message="-----" />
</target>
</project>