diff options
| author | jlescot | 2007-11-20 11:26:02 +0000 |
|---|---|---|
| committer | jlescot | 2007-11-20 11:26:02 +0000 |
| commit | 2f125f7bdb942d7c872972802d2ad1199c83cb4e (patch) | |
| tree | a2477fed168cb04d3a17fc62ad6937085f9ff464 | |
| parent | a04fbe4da854b3bef32234487502cb0a873c9026 (diff) | |
| download | org.eclipse.ecoretools-2f125f7bdb942d7c872972802d2ad1199c83cb4e.tar.gz org.eclipse.ecoretools-2f125f7bdb942d7c872972802d2ad1199c83cb4e.tar.xz org.eclipse.ecoretools-2f125f7bdb942d7c872972802d2ad1199c83cb4e.zip | |
Copy as it was done in other emft doc plugins
| -rw-r--r-- | doc/org.eclipse.emf.ecoretools.doc/build.xml | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/doc/org.eclipse.emf.ecoretools.doc/build.xml b/doc/org.eclipse.emf.ecoretools.doc/build.xml index da89257..c166585 100644 --- a/doc/org.eclipse.emf.ecoretools.doc/build.xml +++ b/doc/org.eclipse.emf.ecoretools.doc/build.xml @@ -1,7 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <project name="org.eclipse.emf.ecoretools.doc" default="build.jars" basedir="."> - <property name="pluginVersion" value="2.3.0"/> + <!-- Plug-in information. This is a HACK. Do not forget to update version numbers, etc.. --> + <property name="pluginVersion" value="0.8.0"/> + <property name="docPlugin" value="org.eclipse.emf.ecoretools.doc"/> + <property name="projectName" value="emf.ecoretools"/> <property name="basews" value="${ws}"/> @@ -31,7 +34,7 @@ <isset property="buildTempFolder"/> </condition> <property name="pluginTemp" value="${basedir}"/> - <condition property="build.result.folder" value="${pluginTemp}/org.eclipse.${projectName}.doc"> + <condition property="build.result.folder" value="${pluginTemp}/${docPlugin}"> <isset property="buildTempFolder"/> </condition> <property name="build.result.folder" value="${basedir}"/> @@ -43,27 +46,27 @@ <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> </target> - <target name="build.update.jar" depends="init" description="Build the plug-in: org.eclipse.${projectName}.doc for an update site."> + <target name="build.update.jar" depends="init" description="Build the plug-in: ${docPlugin} for an update site."> <delete dir="${temp.folder}"/> <mkdir dir="${temp.folder}"/> <antcall target="build.jars"/> <antcall target="gather.bin.parts"> <param name="destination.temp.folder" value="${temp.folder}/"/> </antcall> - <zip destfile="${plugin.destination}/org.eclipse.${projectName}.doc_${pluginVersion}.${forceContextQualifier}.jar" basedir="${temp.folder}/org.eclipse.${projectName}.doc_${pluginVersion}.${forceContextQualifier}" filesonly="false" whenempty="skip" update="false"/> + <zip destfile="${plugin.destination}/${docPlugin}_${pluginVersion}.${forceContextQualifier}.jar" basedir="${temp.folder}/${docPlugin}_${pluginVersion}.${forceContextQualifier}" filesonly="false" whenempty="skip" update="false"/> <delete dir="${temp.folder}"/> </target> <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> - <mkdir dir="${destination.temp.folder}/org.eclipse.${projectName}.doc_${pluginVersion}.${forceContextQualifier}"/> - <copy todir="${destination.temp.folder}/org.eclipse.${projectName}.doc_${pluginVersion}.${forceContextQualifier}" failonerror="true" overwrite="false"> + <mkdir dir="${destination.temp.folder}/${docPlugin}_${pluginVersion}.${forceContextQualifier}"/> + <copy todir="${destination.temp.folder}/${docPlugin}_${pluginVersion}.${forceContextQualifier}" failonerror="true" overwrite="false"> <fileset dir="${build.result.folder}" includes="about.*,modeling*.png,plugin.*,toc*.xml,topics_*.xml,doc.zip,index/**,META-INF/**"/> </copy> - <eclipse.versionReplacer path="${destination.temp.folder}/org.eclipse.${projectName}.doc_${pluginVersion}.${forceContextQualifier}" version="${pluginVersion}.${forceContextQualifier}"/> + <eclipse.versionReplacer path="${destination.temp.folder}/${docPlugin}_${pluginVersion}.${forceContextQualifier}" version="${pluginVersion}.${forceContextQualifier}"/> </target> - <target name="build.jars" depends="init" description="Build all the jars for the plug-in: org.eclipse.${projectName}.doc."> + <target name="build.jars" depends="init" description="Build all the jars for the plug-in: ${docPlugin}."> <property name="eclipseDir" location="../.."/> <chmod perm="754" file="build/antJavadoc.sh"/> @@ -98,18 +101,18 @@ <target name="gather.logs" depends="init" if="destination.temp.folder"> </target> - <target name="clean" depends="init" description="Clean the plug-in: org.eclipse.${projectName}.doc of all the zips, jars and logs created."> - <delete file="${plugin.destination}/org.eclipse.${projectName}.doc_${pluginVersion}.${forceContextQualifier}.jar"/> - <delete file="${plugin.destination}/org.eclipse.${projectName}.doc_${pluginVersion}.${forceContextQualifier}.zip"/> + <target name="clean" depends="init" description="Clean the plug-in: ${docPlugin} of all the zips, jars and logs created."> + <delete file="${plugin.destination}/${docPlugin}_${pluginVersion}.${forceContextQualifier}.jar"/> + <delete file="${plugin.destination}/${docPlugin}_${pluginVersion}.${forceContextQualifier}.zip"/> <delete dir="${temp.folder}"/> </target> <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder."> - <eclipse.convertPath fileSystemPath="D:/eclipse/${projectName}/eclipse/plugins/org.eclipse.${projectName}.doc" property="resourcePath"/> + <eclipse.convertPath fileSystemPath="D:/eclipse/${projectName}/eclipse/plugins/${docPlugin}" property="resourcePath"/> <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> </target> - <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: org.eclipse.${projectName}.doc."> + <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: ${docPlugin}."> <delete dir="${temp.folder}"/> <mkdir dir="${temp.folder}"/> <antcall target="build.jars"/> @@ -123,7 +126,7 @@ <delete> <fileset dir="${temp.folder}" includes="**/*.bin.log" /> </delete> - <zip destfile="${plugin.destination}/org.eclipse.${projectName}.doc_${pluginVersion}.${forceContextQualifier}.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/> + <zip destfile="${plugin.destination}/${docPlugin}_${pluginVersion}.${forceContextQualifier}.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/> <delete dir="${temp.folder}"/> </target> |
