[go: up one dir, main page]

Menu

[r69]: / tags / V0_5_0 / build.xml  Maximize  Restore  History

Download this file

126 lines (108 with data), 4.7 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
<project name="Osmorc" default="buildSourceZIP" basedir=".">
<property file="build.properties"/>
<patternset id="ignored.files">
<exclude name="**/CVS/**"/>
<exclude name="**/SCCS/**"/>
<exclude name="**/RCS/**"/>
<exclude name="**/rcs/**"/>
<exclude name="**/.DS_Store/**"/>
<exclude name="**/.svn/**"/>
<exclude name="**/.sbas/**"/>
<exclude name="**/.IJI.*/**"/>
<exclude name="**/vssver.scc/**"/>
<exclude name="**/vssver2.scc/**"/>
</patternset>
<patternset id="compiler.resources">
<include name="**/?*.properties"/>
<include name="**/?*.xml"/>
<include name="**/?*.gif"/>
<include name="**/?*.png"/>
<include name="**/?*.jpeg"/>
<include name="**/?*.jpg"/>
<include name="**/?*.html"/>
<include name="**/?*.dtd"/>
<include name="**/?*.tld"/>
</patternset>
<path id="jdk.classpath.idea_plugin_jdk">
<fileset dir="${jdk.home.idea_plugin_jdk}">
<include name="lib/*.jar"/>
</fileset>
</path>
<property name="module.jdk.classpath.osmorc" value="jdk.classpath.idea_plugin_jdk"/>
<dirname property="module.osmorc.basedir" file="${ant.file}"/>
<property name="osmorc.output.dir" value="${module.osmorc.basedir}/classes/production/Osmorc"/>
<property name="bin.jar" value="${module.osmorc.basedir}/Osmorc.zip"/>
<property name="source.zip" value="${module.osmorc.basedir}/Osmorc_src.zip" />
<path id="osmorc.module.classpath">
<path refid="${module.jdk.classpath.osmorc}"/>
<pathelement location="${module.osmorc.basedir}/lib/org.eclipse.osgi.jar"/>
</path>
<path id="osmorc.module.sourcepath">
<dirset dir="${module.osmorc.basedir}">
<include name="src"/>
</dirset>
</path>
<path id="osmorc.module.test.sourcepath">
<dirset dir="${module.osmorc.basedir}">
<include name="src_test"/>
</dirset>
</path>
<target name="clean" description="cleanup module">
<delete dir="${osmorc.output.dir}"/>
</target>
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="jdk.classpath.idea_plugin_jdk"/>
<target name="compile.module.osmorc" description="Compile module Osmorc; production classes">
<mkdir dir="${osmorc.output.dir}"/>
<javac2 destdir="${osmorc.output.dir}" debug="on" nowarn="off" memorymaximumsize="128m" fork="true">
<classpath refid="osmorc.module.classpath"/>
<src refid="osmorc.module.sourcepath"/>
<patternset refid="ignored.files"/>
</javac2>
<copy todir="${osmorc.output.dir}">
<fileset dir="${module.osmorc.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="plugin.build.jar.osmorc" depends="compile.module.osmorc" description="Build plugin archive for module 'Osmorc'">
<property name="tmp.dir.osmorc" value="${module.osmorc.basedir}/../temp"/>
<mkdir dir="${tmp.dir.osmorc}"/>
<mkdir dir="${tmp.dir.osmorc}/lib"/>
<jar destfile="${tmp.dir.osmorc}/lib/Osmorc.jar" duplicate="preserve">
<zipfileset dir="${module.osmorc.basedir}/classes/production/Osmorc" prefix=""/>
<zipfileset file="${module.osmorc.basedir}/META-INF/plugin.xml" prefix="META-INF"/>
<manifest>
<attribute name="Created-By" value="IntelliJ IDEA"/>
<attribute name="Manifest-Version" value="1.0"/>
</manifest>
</jar>
<mkdir dir="${tmp.dir.osmorc}/help"/>
<jar destfile="${tmp.dir.osmorc}/help/OsmorcHelp.jar" duplicate="preserve">
<zipfileset dir="${module.osmorc.basedir}/help" prefix=""/>
<manifest>
<attribute name="Created-By" value="IntelliJ IDEA"/>
<attribute name="Manifest-Version" value="1.0"/>
</manifest>
</jar>
<copy file="${module.osmorc.basedir}/lib/org.eclipse.osgi.jar" tofile="${tmp.dir.osmorc}/lib/org.eclipse.osgi.jar"/>
<zip destfile="${bin.jar}">
<zipfileset dir="${module.osmorc.basedir}/../temp" prefix="Osmorc"/>
</zip>
<delete dir="${tmp.dir.osmorc}"/>
</target>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="buildSourceZIP">
<delete file="${source.zip}" quiet="true"/>
<zip destfile="${source.zip}">
<fileset dir="${basedir}">
<exclude name="*Osmorc*.zip"/>
<exclude name="**.iws"/>
<exclude name="*classes/**"/>
</fileset>
</zip>
</target>
<target name="all" depends="init, clean, plugin.build.jar.osmorc, buildSourceZIP" description="build all"/>
</project>