blob: 2f3eeff2c6ac2c1128c5e44a4d251ac513867c97 (
plain)
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
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="ExamplePlugin" default="copy">
<target name="init" description="setup paths">
<mkdir dir="target"/>
<property name="cindy2jar" location="lib/cindy2.jar"/>
<property name="pluginfolder" location="target/Plugins"/>
<property name="plugin" location="KetCindyPlugin.jar"/>
<mkdir dir="target/Plugins"/>
</target>
<path id="libraries">
<fileset dir="lib" includes="*.jar"/>
</path>
<!-- no changes necessary below this line -->
<target name="compile" depends="init" description="compile Example Plugin for Cinderella">
<mkdir dir="target/classes"/>
<javac encoding="utf-8" debug="on" optimize="on"
srcdir="src" destdir="target/classes" target="1.6"
source="1.6">
<classpath>
<pathelement location="${cindy2jar}"/>
<path refid="libraries"/>
</classpath>
</javac>
</target>
<target name="build" depends="compile" description="create the complete jRealityPlugin for Cinderella">
<delete file="${plugin}"/>
<!-- add compiled classes -->
<jar basedir="target/classes" destfile="${plugin}" includes="**/*">
</jar>
<!-- add class path -->
<pathconvert property="mf.classpath" pathsep=" ">
<path refid="libraries"/>
<flattenmapper/>
</pathconvert>
<jar destfile="${plugin}" update="true" index="true">
<manifest>
<attribute name="Class-Path" value="${mf.classpath}"/>
</manifest>
<zipgroupfileset dir="lib" includes="*.jar">
<exclude name="cindy2.jar"/>
</zipgroupfileset>
</jar>
<!-- Add services file -->
<jar destfile="${plugin}" basedir="config" update="true">
<file file="META-INF/services/de.cinderella.api.cs.CindyScriptPlugin"/>
</jar>
</target>
<target name="copy" depends="build" description="Copy plugin to Plugins folder">
<copy file="${plugin}" todir="${pluginfolder}"/>
</target>
<target name="clean">
<delete dir="target"/>
</target>
</project>
|