Menu

[r1036]: / trunk / feature_ch.sahits.codegen.sdk / build.xml  Maximize  Restore  History

Download this file

169 lines (152 with data), 7.6 kB

  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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?xml version="1.0" encoding="UTF-8"?>
<project name="ch.sahits.codegen.sdk" default="zip.sources" basedir=".">
<property name="bundleVersion" value="1.1.0"/>
<target name="init">
<property name="feature.temp.folder" value="${basedir}/feature.temp.folder"/>
<property name="feature.destination" value="${basedir}"/>
</target>
<target name="all.plugins" depends="init">
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.microsoft" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.model" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../plugin_ch.sahits.codegen.java" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.mysql" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.oracle" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.java.gui" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.java.examples" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.test" target="${target}">
</ant>
</target>
<target name="all.features" depends="init">
</target>
<target name="update.feature" depends="init">
</target>
<target name="all.children" depends="init,all.features,all.plugins,update.feature">
</target>
<target name="children" if="include.children">
<antcall target="all.children"/>
</target>
<target name="build.jars" depends="init" description="Build all the jars for the feature: ch.sahits.codegen.sdk.">
<antcall target="all.children">
<param name="target" value="build.jars"/>
</antcall>
</target>
<target name="build.sources" depends="init">
<antcall target="all.children">
<param name="target" value="build.sources"/>
</antcall>
</target>
<target name="build.zips" depends="init">
<antcall target="all.children">
<param name="target" value="build.zips"/>
</antcall>
</target>
<target name="build.update.jar" depends="init" description="Build the feature jar of: ch.sahits.codegen.sdk for an update site.">
<antcall target="all.children">
<param name="target" value="build.update.jar"/>
</antcall>
<property name="feature.base" value="${feature.temp.folder}"/>
<delete dir="${feature.temp.folder}"/>
<mkdir dir="${feature.temp.folder}"/>
<antcall target="gather.bin.parts" inheritAll="false">
<param name="os" value="*"/>
<param name="feature.base" value="${feature.temp.folder}"/>
<param name="ws" value="*"/>
<param name="arch" value="*"/>
<param name="nl" value="*"/>
</antcall>
<jar destfile="${feature.destination}/ch.sahits.codegen.sdk_${bundleVersion}.jar" basedir="${feature.temp.folder}/features/ch.sahits.codegen.sdk_0.9.5"/>
<delete dir="${feature.temp.folder}"/>
</target>
<target name="gather.bin.parts" depends="init" if="feature.base">
<mkdir dir="${feature.base}/features/ch.sahits.codegen.sdk_${bundleVersion}"/>
<antcall target="children">
<param name="target" value="gather.bin.parts"/>
<param name="destination.temp.folder" value="${feature.base}/plugins"/>
</antcall>
<copy todir="${feature.base}/features/ch.sahits.codegen.sdk_${bundleVersion}" failonerror="true" overwrite="false">
<fileset dir="${basedir}">
<include name="feature.xml"/>
</fileset>
</copy>
<eclipse.idReplacer featureFilePath="${feature.base}/features/ch.sahits.codegen.sdk_${bundleVersion}/feature.xml" selfVersion="0.9.5" featureIds="" pluginIds="ch.sahits.codegen.java:0.0.0,0.9.5,ch.sahits.codegen.java.examples:0.0.0,0.9.5,ch.sahits.codegen.java.gui:0.0.0,0.9.5,ch.sahits.codegen.test:0.0.0,0.9.5,ch.sahits.model:0.0.0,0.9.5,ch.sahits.codegen.microsoft:0.0.0,0.9.5,ch.sahits.codegen.mysql:0.0.0,0.9.5,ch.sahits.codegen.oracle:0.0.0,0.9.5,"/>
<antcall target="rootFiles${os}_${ws}_${arch}"/>
</target>
<target name="rootFiles*_*_*">
</target>
<target name="rootFilesgroup_group_group">
<antcall target="rootFiles*_*_*"/>
</target>
<target name="zip.distribution" depends="init" description="Create a zip containing all the plug-ins and features for the feature: ch.sahits.codegen.sdk.">
<delete dir="${feature.temp.folder}"/>
<mkdir dir="${feature.temp.folder}"/>
<antcall target="gather.bin.parts">
<param name="feature.base" value="${feature.temp.folder}"/>
<param name="os" value="*"/>
<param name="arch" value="*"/>
<param name="ws" value="*"/>
<param name="nl" value="*"/>
<param name="include.children" value="true"/>
</antcall>
<zip destfile="${feature.destination}/ch.sahits.codegen.sdk_${bundleVersion}.bin.dist.zip" basedir="${feature.temp.folder}" filesonly="false" whenempty="skip" update="false"/>
<delete dir="${feature.temp.folder}"/>
</target>
<target name="zip.sources" depends="init">
<delete dir="${feature.temp.folder}"/>
<mkdir dir="${feature.temp.folder}"/>
<antcall target="all.children">
<param name="target" value="gather.sources"/>
<param name="destination.temp.folder" value="${feature.temp.folder}/plugins/ch.sahits.codegen.sdk.source_${bundleVersion}/src"/>
<param name="include.children" value="true"/>
</antcall>
<zip destfile="${feature.destination}/ch.sahits.codegen.sdk_${bundleVersion}.src.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/>
<delete dir="${feature.temp.folder}"/>
</target>
<target name="zip.logs" depends="init">
<delete dir="${feature.temp.folder}"/>
<mkdir dir="${feature.temp.folder}"/>
<antcall target="all.children" inheritAll="false">
<param name="target" value="gather.logs"/>
<param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/>
<param name="include.children" value="true"/>
</antcall>
<zip destfile="${feature.destination}/ch.sahits.codegen.sdk_${bundleVersion}.log.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/>
<delete dir="${feature.temp.folder}"/>
</target>
<target name="clean" depends="init" description="Clean the feature: ch.sahits.codegen.sdk of all the zips, jars and logs created.">
<delete file="${feature.destination}/ch.sahits.codegen.sdk_${bundleVersion}.jar"/>
<delete file="${feature.destination}/ch.sahits.codegen.sdk_${bundleVersion}.bin.dist.zip"/>
<delete file="${feature.destination}/ch.sahits.codegen.sdk_${bundleVersion}.log.zip"/>
<delete file="${feature.destination}/ch.sahits.codegen.sdk_${bundleVersion}.src.zip"/>
<delete dir="${feature.temp.folder}"/>
<antcall target="all.children">
<param name="target" value="clean"/>
</antcall>
</target>
<target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
<eclipse.convertPath fileSystemPath="/home/andi/eclipse/feature_ch.sahits.codegen.sdk/" property="resourcePath"/>
<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
<antcall target="all.children">
<param name="target" value="refresh"/>
</antcall>
</target>
<target name="gather.sources">
<antcall target="children">
<param name="target" value="gather.sources"/>
<param name="destination.temp.folder" value="${feature.temp.folder}/plugins/ch.sahits.codegen.sdk.source_${bundleVersion}/src"/>
</antcall>
</target>
<target name="gather.logs" depends="init">
<mkdir dir="${feature.temp.folder}"/>
<antcall target="all.children" inheritAll="false">
<param name="target" value="gather.logs"/>
<param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/>
</antcall>
</target>
</project>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.