Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[3e995f]: build.xml Maximize Restore History

Download this file

build.xml    138 lines (106 with data), 4.1 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
<!-- ================================================== -->
<!-- Build file for the Project Viewer plugin -->
<!-- ================================================== -->
<project name="Project Viewer" default="compile" basedir=".">
<!-- ================================================ -->
<!-- Property definitions -->
<!-- ================================================ -->
<property file="build.properties"/>
<property name="version" value="1.0.2"/>
<property name="build" value="build"/>
<property name="build.classes" value="${build}/classes"/>
<property name="build.docs" value="${build}/ProjectViewer/docs"/>
<property name="build.api" value="${build.docs}/api"/>
<property name="src" value="."/>
<property name="src.main" value="${src}"/>
<property name="src.etc" value="."/>
<property name="src.lib" value="lib"/>
<property name="docs" value="docs"/>
<!-- ================================================ -->
<!-- Classpath definitions -->
<!-- ================================================ -->
<path id="default.classpath">
<fileset dir="${src.lib}">
<include name="*.jar"/>
</fileset>
</path>
<!-- ================================================ -->
<!-- Targets -->
<!-- ================================================ -->
<!-- ================================================ -->
<target name="compile"
description="Compile all main classes">
<mkdir dir="${build.classes}"/>
<javac srcdir="${src.main}"
destdir="${build.classes}"
debug="${compiler.debug}"
optimize="${compiler.optimize}"
deprecation="${compiler.deprecation}"
verbose="${compiler.verbose}"
classpathref="default.classpath"
>
<include name="projectviewer/**"/>
</javac>
</target>
<!-- ================================================ -->
<target name="build"
depends="compile"
description="Build the plugin">
<copy todir="${build.classes}">
<fileset dir="${src.main}">
<include name="projectviewer/**/*.props"/>
<include name="projectviewer/**/*.properties"/>
<include name="projectviewer/**/icons/*.gif"/>
</fileset>
</copy>
<copy todir="${build.classes}">
<fileset dir="${src.etc}">
<include name="actions.xml"/>
</fileset>
</copy>
<mkdir dir="${build.docs}"/>
<copy todir="${build.docs}">
<fileset dir="${docs}"/>
</copy>
<jar jarfile="${build}/ProjectViewer.jar">
<fileset dir="${build.classes}"/>
</jar>
</target>
<!-- ================================================ -->
<target name="dist"
depends="build"
description="Build a distribution">
<zip zipfile="ProjectViewer-${version}.zip">
<fileset dir="${build}">
<include name="ProjectViewer/**"/>
<include name="ProjectViewer.jar"/>
</fileset>
</zip>
</target>
<!-- ================================================ -->
<target name="deploy"
depends="dist"
description="Deploy the plugin">
<unzip src="ProjectViewer-${version}.zip" dest="${jedit.user.home}/jars"/>
</target>
<!-- ================================================ -->
<target name="javadoc"
description="Compile JavaDoc">
<mkdir dir="${build.api}"/>
<javadoc sourcepath="${src}"
destdir="${build.api}"
packagenames="projectviewer.*"
windowtitle="${ant.project.name} API"
classpathref="default.classpath"/>
</target>
<!-- ================================================ -->
<target name="clean"
description="Cleans project directories">
<delete dir="${build}"/>
<delete>
<fileset dir=".">
<include name="ProjectViewer-*.zip"/>
</fileset>
</delete>
</target>
</project>