Merge remote-tracking branch 'origin/master'
[idea/community.git] / samples / plugin / build / build.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <project name="deploy" default="jar_plugin" basedir="..">
3   <property name="plugname" value="Sample"/>
4   <property name="build.path" value="${project.path}/build_out"/>
5
6   <target name="jar_plugin">
7
8     <delete includeEmptyDirs="true" failonerror="false">
9       <fileset dir="${build.path}/com" />
10       <fileset dir="${build.path}/META-INF" />
11     </delete>
12
13     <mkdir dir="${build.path}"/>
14
15     <copy todir="${build.path}/META-INF">
16        <fileset dir="${project.path}/src/META-INF"/>
17     </copy>
18
19     <copy todir="${build.path}/com">
20        <fileset dir="${project.path}/classes/com"/>
21     </copy>
22
23     <jar jarfile="${build.path}/${plugname}.jar" basedir="${build.path}"
24       excludes="${plugname}.jar"
25      />
26
27   </target>
28 </project>