| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- ====================================================================== |
| May 25, 2010 10:34:57 AM |
| |
| This ant script creates a zip file for each of EMF Parsley's example projects. |
| |
| This is based on the Xtext's corresponding one. |
| |
| If the examples would not be zipped the resulting file namens would be too long to be |
| handled my MS Windows. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=301858 |
| |
| Moritz Eysholdt |
| ====================================================================== --> |
| <project name="project" default="zip_all_examples"> |
| |
| <property name="source" location="../../examples/" /> |
| <property name="target_xtext" location="contents" /> |
| |
| <macrodef name="zip_example"> |
| <attribute name="name" default="default" /> |
| <attribute name="source" default="${source}" /> |
| <attribute name="target" default="${target_xtext}" /> |
| <sequential> |
| <delete file="@{target}/@{name}.zip" /> |
| <zip destfile="@{target}/@{name}.zip" basedir="@{source}/@{name}" |
| excludes="bin,bin/**,xtend-gen,xtend-gen/**,**/*._trace,**/*.smap,.antlr-generator*.jar,target,target/**,nodist,nodist/**,old,old/**,**/hs_*.log,**/*_Internal.launch" /> |
| </sequential> |
| </macrodef> |
| |
| <!-- |
| https://bugs.eclipse.org/bugs/show_bug.cgi?id=476717 |
| excludes="bin,bin/**,xtend-gen,xtend-gen/**,emfparsley-gen,emfparsley-gen/**,**/*._trace,**/*.smap,.antlr-generator*.jar,target,target/**,nodist,nodist/**,old,old/**,**/hs_*.log,**/*_Internal.launch" /> |
| --> |
| |
| <target name="zip_all_examples"> |
| <zip_example name="org.eclipse.emf.parsley.examples.mail.rcp" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.mail.model" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.mail.accountsview" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.mail.mailsview" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.mail.messageview" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.mail.product.feature" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.firstexample" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.eclipse4" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.eclipse4.parsleypart" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.eclipse4.product.feature" /> |
| <zip_example name="org.eclipse.emf.examples.library" /> |
| <zip_example name="org.eclipse.emf.examples.library.edit" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.views" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.editors" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.cdo.server" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.cdo.model" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.cdo.rcp" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.cdo.treeform" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.cdo.product.feature" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.cdo.rap" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.rap.targetplatform" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.rap.model" /> |
| <zip_example name="org.eclipse.emf.parsley.examples.rap.ui" /> |
| </target> |
| |
| <target name="clean"> |
| <delete> |
| <fileset dir="${target_xtext}" includes="**/*.zip" /> |
| </delete> |
| </target> |
| |
| </project> |