Permalink
Browse files

calling Kilim weaver in Eclipse build, so weaving is also done from w…

…ithin Eclipse
  • Loading branch information...
1 parent 1abbec5 commit ea7163a49e5a20b25fa554b8feb8575089307994 @jetztgradnet jetztgradnet committed Apr 14, 2012
Showing with 64 additions and 7 deletions.
  1. +17 −0 .externalToolBuilders/Kilim Weaver.launch
  2. +7 −7 .project
  3. +40 −0 weave.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="true"/>
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/JVM Contents (MacOS X Default)"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.launching.remote.InternalAntRunner"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="erjang"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/erjang/weave.xml}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/erjang}"/>
+<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+</launchConfiguration>
View
@@ -6,18 +6,18 @@
</projects>
<buildSpec>
<buildCommand>
- <name>org.eclipse.dltk.core.scriptbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.erjang.kilim_builder.KilimBuilder</name>
+ <name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
+ <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+ <triggers>full,incremental,</triggers>
<arguments>
+ <dictionary>
+ <key>LaunchConfigHandle</key>
+ <value>&lt;project&gt;/.externalToolBuilders/Kilim Weaver.launch</value>
+ </dictionary>
</arguments>
</buildCommand>
</buildSpec>
View
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<project name="erjang" default="weave">
+ <path id="erjang.classpath">
+ <pathelement location="target/classes/" />
+ <pathelement location="lib/js.jar" />
+ <pathelement location="lib/kilim-0.6-krab.jar" />
+ <pathelement location="lib/OtpErlang.jar" />
+ <pathelement location="lib/junit.jar" />
+ <pathelement location="lib/clj-ds.jar" />
+ <pathelement location="lib/antlr-3.2.jar" />
+ <pathelement path="${java.class.path}" />
+ </path>
+
+ <target name="weave" depends="">
+ <echo message="Weaving files ===================" />
+ <java classname="kilim.tools.Weaver" fork="yes">
+ <classpath refid="erjang.classpath" />
+ <assertions>
+ <enable />
+ </assertions>
+ <arg value="-d" />
+ <arg value="./target/classes" />
+ <arg line="./target/classes" />
+ </java>
+ </target>
+
+ <target name="incremental-weave" depends="">
+ <echo message="Weaving files ===================" />
+ <java classname="kilim.tools.Weaver" fork="yes">
+ <classpath refid="erjang.classpath" />
+ <assertions>
+ <enable />
+ </assertions>
+ <arg value="-d" />
+ <arg value="./target/classes" />
+ <!--<arg line="${system.files}" />-->
+ <arg line="./target/classes" />
+ </java>
+ </target>
+</project>

0 comments on commit ea7163a

Please sign in to comment.