misc/MyPlugin/build.xml

Code
Comments
Other
Rev Date Author Line
967 24 Nov 06 gregory 1 <?xml version="1.0"?>
967 24 Nov 06 gregory 2 <!-- ====================================================================== 
967 24 Nov 06 gregory 3      Nov 23, 2006 1:05:20 PM                                                        
967 24 Nov 06 gregory 4
967 24 Nov 06 gregory 5      My plugin    
967 24 Nov 06 gregory 6      This plugin does nothing
967 24 Nov 06 gregory 7                    
967 24 Nov 06 gregory 8      gregory                                                                
967 24 Nov 06 gregory 9      ====================================================================== -->
967 24 Nov 06 gregory 10 <project name="MyPlugin" default="compile">
967 24 Nov 06 gregory 11   <description>
967 24 Nov 06 gregory 12             This plugin does nothing
967 24 Nov 06 gregory 13     </description>
967 24 Nov 06 gregory 14
967 24 Nov 06 gregory 15   <property name="plugin.name" value="MyPlugin" />
967 24 Nov 06 gregory 16   <property name="src" value="src" />
967 24 Nov 06 gregory 17   <property name="build" value="build" />
967 24 Nov 06 gregory 18   <path id="classpath">
967 24 Nov 06 gregory 19     <fileset dir="lib">
967 24 Nov 06 gregory 20       <include name="*.jar" />
967 24 Nov 06 gregory 21     </fileset>    
967 24 Nov 06 gregory 22   </path>
967 24 Nov 06 gregory 23
967 24 Nov 06 gregory 24   <!-- ================================= 
967 24 Nov 06 gregory 25           target: compile              
967 24 Nov 06 gregory 26          ================================= -->
967 24 Nov 06 gregory 27   <target name="compile" depends="clean" description="--> This plugin does nothing">
967 24 Nov 06 gregory 28     <mkdir dir="${build}"/>
967 24 Nov 06 gregory 29     <javac encoding="ISO-8859-1" srcdir="${src}" destdir="${build}" classpathref="classpath" debug="true" deprecation="true">
967 24 Nov 06 gregory 30       <compilerarg value="-Xlint:unchecked" />
967 24 Nov 06 gregory 31     </javac>
967 24 Nov 06 gregory 32   </target>
967 24 Nov 06 gregory 33
967 24 Nov 06 gregory 34   <!-- - - - - - - - - - - - - - - - - - 
967 24 Nov 06 gregory 35           target: clean                      
967 24 Nov 06 gregory 36          - - - - - - - - - - - - - - - - - -->
967 24 Nov 06 gregory 37   <target name="clean">
967 24 Nov 06 gregory 38   </target>
967 24 Nov 06 gregory 39
967 24 Nov 06 gregory 40   <target name="dist" depends="compile">
967 24 Nov 06 gregory 41     <jar basedir="${build}" destfile="${plugin.name}.jar" includes="**/*.class" />
967 24 Nov 06 gregory 42   </target>
967 24 Nov 06 gregory 43
967 24 Nov 06 gregory 44 </project>