diff options
author | Thanh Ha | 2013-01-16 04:54:05 +0000 |
---|---|---|
committer | Jayaprakash Arthanareeswaran | 2013-02-05 19:19:17 +0000 |
commit | e49db6968e42abb8ff526d386a122936552a3efd (patch) | |
tree | 290b4388b60f4b8e74e74f7358f0b08779948b8c /org.eclipse.jdt.compiler.apt/pom.xml | |
parent | f350c3be6ae3f45b0550d20e4f84512419a218a0 (diff) | |
download | eclipse.jdt.core-e49db6968e42abb8ff526d386a122936552a3efd.tar.gz eclipse.jdt.core-e49db6968e42abb8ff526d386a122936552a3efd.tar.xz eclipse.jdt.core-e49db6968e42abb8ff526d386a122936552a3efd.zip |
Fix for bug 385154 - [CBI] JDT core needs a way to produce ecj jar
during tycho builds
Diffstat (limited to 'org.eclipse.jdt.compiler.apt/pom.xml')
-rw-r--r-- | org.eclipse.jdt.compiler.apt/pom.xml | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/org.eclipse.jdt.compiler.apt/pom.xml b/org.eclipse.jdt.compiler.apt/pom.xml index e5773737b7..c58ca68ad9 100644 --- a/org.eclipse.jdt.compiler.apt/pom.xml +++ b/org.eclipse.jdt.compiler.apt/pom.xml @@ -22,4 +22,81 @@ <artifactId>org.eclipse.jdt.compiler.apt</artifactId> <version>1.0.600-SNAPSHOT</version> <packaging>eclipse-plugin</packaging> + + <build> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.7</version> + <executions> + <execution> + <id>natives</id> + <phase>process-classes</phase> + <configuration> + <target> + + <path id="ecj.id"> + <fileset dir="${basedir}/../org.eclipse.jdt.core/target/"> + <include name="org.eclipse.jdt.core-*-SNAPSHOT-batch-compiler.jar"/> + </fileset> + </path> + + <property name="ecj.file" refid="ecj.id"/> + + <echo message="UPDATE ${ecj.file}" /> + + <property name="unjarDestBin" value="${basedir}/tempbin"/> + <mkdir dir="${unjarDestBin}"/> + + <unjar + src="${ecj.file}" + dest="${unjarDestBin}"/> + + <zip destfile="${ecj.file}" update="true"> + <!-- old stuff --> + <fileset dir="${unjarDestBin}"/> + <!-- new stuff: this plugin classes are here --> + <fileset dir="${basedir}/target/classes"> + <include name="**/*"/> + </fileset> + <fileset dir="${basedir}"> + <include name="META-INF/services/**" /> + </fileset> + </zip> + <delete dir="${unjarDestBin}" failonerror="false"/> + + <!-- no source bundle for ecj, as jdt.core pom.xml does not generate it --> + + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>bsf</groupId> + <artifactId>bsf</artifactId> + <version>2.4.0</version> + </dependency> + <dependency> + <groupId>rhino</groupId> + <artifactId>js</artifactId> + <version>1.7R2</version> + </dependency> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant-apache-bsf</artifactId> + <version>1.8.3</version> + </dependency> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant-nodeps</artifactId> + <version>1.8.1</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> </project> |