You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by as...@apache.org on 2006/02/05 19:49:24 UTC
svn commit: r375079 - in /jakarta/jcs/trunk: ant_eclipse.xml
ant_eclipse_resources.launch maven.xml
Author: asmuts
Date: Sun Feb 5 10:49:23 2006
New Revision: 375079
URL: http://svn.apache.org/viewcvs?rev=375079&view=rev
Log:
adding ant taks to call maven copy resources for eclipse
Added:
jakarta/jcs/trunk/ant_eclipse.xml
jakarta/jcs/trunk/ant_eclipse_resources.launch
Modified:
jakarta/jcs/trunk/maven.xml
Added: jakarta/jcs/trunk/ant_eclipse.xml
URL: http://svn.apache.org/viewcvs/jakarta/jcs/trunk/ant_eclipse.xml?rev=375079&view=auto
==============================================================================
--- jakarta/jcs/trunk/ant_eclipse.xml (added)
+++ jakarta/jcs/trunk/ant_eclipse.xml Sun Feb 5 10:49:23 2006
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+
+<project name="ant_eclipse" basedir="." default="default">
+
+ <!-- bring in the environmental properties -->
+ <property environment="env"/>
+ <property name="maven.home" value="${env.MAVEN_HOME}"/>
+
+ <!-- make sure we have maven -->
+ <target name="check-env" description="Check if environment variables are set">
+ <echo>maven.home = ${maven.home}</echo>
+ <fail unless="env.MAVEN_HOME" message="You MUST set MAVEN_HOME first"/>
+ </target>
+
+ <target name="default" depends="check-env">
+
+ <condition property="maven.script" value="maven.bat">
+ <and>
+ <os family="windows" />
+ <equals arg1="${maven.script}" arg2="$${maven.script}" />
+ <not>
+ <isset property="cygwin.home" />
+ </not>
+ </and>
+ </condition>
+
+ <condition property="maven.script" value="maven">
+ <equals arg1="${maven.script}" arg2="$${maven.script}" />
+ </condition>
+
+ <!-- call maven test:test-resources -->
+ <exec executable="${maven.script}" failonerror="true">
+ <arg value="java:jar-resources"/>
+ <arg value="test:test-resources"/>
+ </exec>
+
+ </target>
+
+</project>
Added: jakarta/jcs/trunk/ant_eclipse_resources.launch
URL: http://svn.apache.org/viewcvs/jakarta/jcs/trunk/ant_eclipse_resources.launch?rev=375079&view=auto
==============================================================================
--- jakarta/jcs/trunk/ant_eclipse_resources.launch (added)
+++ jakarta/jcs/trunk/ant_eclipse_resources.launch Sun Feb 5 10:49:23 2006
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/lmd-small-app/ant_eclipse.xml}"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+</launchConfiguration>
Modified: jakarta/jcs/trunk/maven.xml
URL: http://svn.apache.org/viewcvs/jakarta/jcs/trunk/maven.xml?rev=375079&r1=375078&r2=375079&view=diff
==============================================================================
--- jakarta/jcs/trunk/maven.xml (original)
+++ jakarta/jcs/trunk/maven.xml Sun Feb 5 10:49:23 2006
@@ -2,26 +2,19 @@
xmlns:deploy="deploy" xmlns:u="jelly:util" xmlns:maven="jelly:maven">
<preGoal name="test:test">
-
<!-- Work area for unit tests -->
-
<mkdir dir="target/test-sandbox/logs"/>
<copy todir="target/test-classes">
<fileset dir="src/test-conf"/>
</copy>
-
</preGoal>
-
<preGoal name="test:single">
-
<!-- Work area for unit tests -->
-
<mkdir dir="target/test-sandbox/logs"/>
<copy todir="target/test-classes">
<fileset dir="src/test-conf"/>
</copy>
-
</preGoal>
<postGoal name="java:compile" >
@@ -30,7 +23,6 @@
<goal name="rmic" xmlns:j="jelly:core" xmlns:u="jelly:util">
-
<rmic base="${maven.build.dest}" classname="org.apache.jcs.auxiliary.remote.RemoteCacheListener">
<classpath>
<path refid="maven.dependency.classpath"/>
@@ -48,7 +40,6 @@
<path refid="maven.dependency.classpath"/>
</classpath>
</rmic>
-
</goal>
<goal name="copyjars">
@@ -57,9 +48,16 @@
</j:forEach>
</goal>
-
<postGoal name="site">
<attainGoal name="pdf"/>
</postGoal>
-
+
+ <!-- The eclipse goal runs .project and .classpath generation -->
+ <!-- I want to prevent the .project file genreation, so -->
+ <!-- the ant external tool builder will not get wiped out. -->
+ <goal name="eclipse:generate-project">
+ <!-- do nothing -->
+ <ant:echo>Not generating the .project file.</ant:echo>
+ </goal>
+
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org