Author: nickboldt
Date: 2010-04-04 12:28:42 -0400 (Sun, 04 Apr 2010)
New Revision: 21258
Added:
branches/modular_build/jbosstools-modular_build build.xml.launch
Modified:
branches/modular_build/build.xml
Log:
JBDS-486 build.xml + launcher now support genpom.xml for individual components; can run
from Eclipse or cmdline
Modified: branches/modular_build/build.xml
===================================================================
--- branches/modular_build/build.xml 2010-04-04 16:14:18 UTC (rev 21257)
+++ branches/modular_build/build.xml 2010-04-04 16:28:42 UTC (rev 21258)
@@ -1,11 +1,25 @@
<!-- Run a given ${COMPONENT} build -->
-<project default="run"
xmlns:artifact="antlib:org.apache.maven.artifact.ant" basedir=".">
+<project default="run" basedir=".">
+ <!-- Configuration Start -->
+ <!-- must set name of component to build/test -->
+ <property name="COMPONENT" value="tests" />
+ <!-- Configuration Ends -->
+
+ <!-- To run this script in Eclipse:
+ Run As > Ant Build
+ -->
+ <!-- To run this script via commandline (build default module, tests):
+ cd /home/nboldt/workspace36/jbosstools-modular_build; ant -q
+ or, to build a specific module:
+ cd /home/nboldt/workspace36/jbosstools-modular_build; ant -q -DCOMPONENT=jbpm
+ -->
+
<target name="run" depends="init, genpom, install, deploy" />
<!-- override for local build -->
<available file="/qa/tools/opt" type="dir"
property="isJBossQA" />
- <target name="local" unless="jbossQAConfig">
+ <target name="local" unless="isJBossQA">
<property name="WORKINGDIR" value="${basedir}" />
<property name="COMMON_TOOLS" value="${java.io.tmpdir}" />
</target>
@@ -28,28 +42,16 @@
src="${COMMON_TOOLS}/apache-maven-3.0-alpha-7-bin.tar.gz"
/>
<chmod perm="755"
file="${COMMON_TOOLS}/apache-maven-3.0-alpha-7/bin/mvn"/>
-
- <!-- maven ant tasks -->
- <!--<get usetimestamp="true"
- dest="${COMMON_TOOLS}/maven-ant-tasks-2.1.0.jar"
- src="${MAVEN_MIRROR}/maven-ant-tasks-2.1.0.jar"
- />
- <path id="maven-ant-tasks.classpath"
path="${COMMON_TOOLS}/maven-ant-tasks-2.1.0.jar" />
- <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
- uri="antlib:org.apache.maven.artifact.ant"
- classpathref="maven-ant-tasks.classpath"
- /> -->
</target>
- <!-- TODO: replace this with ant script for better portability -->
<target name="genpom">
- <exec executable="scala" dir="${WORKINGDIR}">
- <arg line="${WORKINGDIR}/genpom.scala" />
- </exec>
+ <ant antfile="genpom.xml" target="run">
+ <property name="WORKINGDIR" value="${WORKINGDIR}/${COMPONENT}"
/>
+ <property name="pathToParentPom" value="../" />
+ </ant>
</target>
<target name="install">
- <property name="COMPONENT" value="tests" />
<echo>Run pom file: ${WORKINGDIR}/${COMPONENT}/pom.xml</echo>
<exec executable="${COMMON_TOOLS}/apache-maven-3.0-alpha-7/bin/mvn"
dir="${WORKINGDIR}/${COMPONENT}">
@@ -60,14 +62,22 @@
<target name="deploy">
<!-- TODO enable publishing to
download.jboss.org or
porkchop.jboss.com
- <artifact:install-provider artifactId="wagon-ssh"
version="1.0-beta-2"/>
-
- <artifact:deploy file="target/my-project-1.0.jar">
+ <get usetimestamp="true"
+ dest="${COMMON_TOOLS}/maven-ant-tasks-2.1.0.jar"
+ src="${MAVEN_MIRROR}/maven-ant-tasks-2.1.0.jar"
+ />
+ <taskdef resource="org/apache/maven/artifact/ant/antlib.xml">
+ <classpath>
+ <pathelement location="${COMMON_TOOLS}/maven-ant-tasks-2.1.0.jar" />
+ </classpath>
+ </taskdef>
+ <install-provider artifactId="wagon-ssh"
version="1.0-beta-2"/>
+ <deploy file="target/my-project-1.0.jar">
<remoteRepository url="scp://localhost/www/repository">
<authentication username="${repository.username}"
privateKey="${user.home}/.ssh/id_dsa" />
</remoteRepository>
<pom refid="mypom" />
- </artifact:deploy>
+ </deploy>
-->
</target>
</project>
Added: branches/modular_build/jbosstools-modular_build build.xml.launch
===================================================================
--- branches/modular_build/jbosstools-modular_build build.xml.launch
(rev 0)
+++ branches/modular_build/jbosstools-modular_build build.xml.launch 2010-04-04 16:28:42
UTC (rev 21258)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL"
value="true"/>
+<booleanAttribute key="org.eclipse.debug.core.ATTR_REFRESH_RECURSIVE"
value="false"/>
+<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE"
value="${container}"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/jbosstools-modular_build/build.xml"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.debug.ui.ATTR_CAPTURE_IN_FILE"
value="${workspace_loc:/jbosstools-modular_build}/buildlog.latest.txt"/>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER"
value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-1.6.0-openjdk-1.6.0.0"/>
+<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="jbosstools-modular_build"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<stringAttribute
key="org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE"
value="${none}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION"
value="${workspace_loc:/jbosstools-modular_build/build.xml}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"
value="-v"/>
+<stringAttribute key="process_factory_id"
value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+</launchConfiguration>