incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1071697 [16/42] - in /incubator/easyant: buildtypes/ buildtypes/trunk/ buildtypes/trunk/build-osgi-bundle-java/ buildtypes/trunk/build-osgi-bundle-java/src/ buildtypes/trunk/build-osgi-bundle-java/src/main/ buildtypes/trunk/build-osgi-bund...
Date Thu, 17 Feb 2011 17:01:56 GMT
Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/coverage-cobertura/0.1/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/coverage-cobertura/0.1/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/coverage-cobertura/0.1/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/emma-test.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/emma-test.xml?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/emma-test.xml (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/emma-test.xml Thu Feb 17 17:01:07 2011
@@ -0,0 +1,51 @@
+<!--
+	Copyright 2008-2010 the EasyAnt project
+	
+	See the NOTICE file distributed with this work for additional information 
+	regarding copyright ownership.
+	
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+	
+	http://www.apache.org/licenses/LICENSE-2.0
+	
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+-->
+<project name="emma-test" xmlns:au="antlib:org.apache.ant.antunit">
+	
+	<dirname file="${ant.file.emma-test}" property="test.dir"/>
+	<import file="${test.dir}/../../../common/test-utils.ant"/>
+
+	<target name="clean" description="remove stale build artifacts before / after each test">
+		<delete dir="${basedir}" includeemptydirs="true">
+			<include name="**/target/**"/>
+			<include name="**/lib/**"/>
+		</delete>
+	</target>
+	
+	<target name="setUp" depends="clean"/>
+	<target name="tearDown" depends="clean"/>
+
+	<target name="testCoverage" description="test generation of coverage reports using emma">
+		
+		<!-- verify test preconditions -->
+		<au:assertFileDoesntExist message="test environment is clean" file="${basedir}/target"/>
+
+		<!-- execute run tests and generate reports -->	
+		<easyant target="test report"/>
+
+		<!-- verify coverage artifacts created -->
+		<au:assertFileExists message="coverage artifacts created" file="${basedir}/target/report/coverage/coverage.html"/>
+		<au:assertFileExists message="coverage artifacts created" file="${basedir}/target/report/coverage/coverage.txt"/>
+		<au:assertFileExists message="coverage artifacts created" file="${basedir}/target/report/coverage/coverage.xml"/>
+		<au:assertFileExists message="coverage artifacts created" file="${basedir}/target/report/coverage/_files/0.html"/>
+		<au:assertFileExists message="coverage artifacts created" file="${basedir}/target/report/coverage/_files/1.html"/>
+
+	</target>
+	
+</project>
\ No newline at end of file

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/emma-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/emma-test.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/emma-test.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/module.ivy (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,35 @@
+<!--
+	Copyright 2009 the EasyAnt project
+	
+	See the NOTICE file distributed with this work for additional information 
+	regarding copyright ownership.
+	
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+	
+	http://www.apache.org/licenses/LICENSE-2.0
+	
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.  
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org"> 
+	<info organisation="org.apache.easyant" module="emma-test" status="integration" >
+		<description>Tests the emma coverage report plugin.</description>
+		<ea:build mrid="org.apache.easyant.buildtypes#build-std-java;0.2">
+			<ea:property name="src.main.java" value="${basedir}/../../abstract-coverage/0.1/src/main/java"/>
+			<ea:property name="src.test.java" value="${basedir}/../../abstract-coverage/0.1/src/test/java"/>
+			<ea:plugin mrid="org.apache.easyant.plugins#emma;0.1" as="emma"/>
+		</ea:build>
+	</info>
+	<configurations>
+		<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf"/>
+		<conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases."/>
+	</configurations>
+	<dependencies>
+		<dependency org="junit" name="junit" rev="4.4" conf="test->default"/>
+	</dependencies>
+</ivy-module>

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/emma/0.1/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/module.ivy (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,31 @@
+<!--
+	Copyright 2009 the EasyAnt project
+
+	See the NOTICE file distributed with this work for additional information
+	regarding copyright ownership.
+
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+
+	http://www.apache.org/licenses/LICENSE-2.0
+
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+	<info organisation="org.apache.easyant" module="test-junit-test" status="integration" >
+		<description>Tests the junit plugin.</description>
+		<ea:build mrid="org.apache.easyant.buildtypes#build-std-java;0.2"/>
+	</info>
+	<configurations>
+		<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf"/>
+		<conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases."/>
+	</configurations>
+	<dependencies>
+		<dependency org="junit" name="junit" rev="4.4" conf="test->default"/>
+	</dependencies>
+</ivy-module>

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,30 @@
+/*
+ *  Copyright 2008-2010 the EasyAnt project
+ *
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.easyant;
+
+import static org.junit.Assert.assertEquals;
+import org.junit.Test;
+
+public class FailingIntegrationTest {
+
+	@Test
+	public void testThatFails() {
+		assertEquals("dlrow", new HelloWorld().hello());
+	}
+}

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,30 @@
+/*
+ *  Copyright 2008-2010 the EasyAnt project
+ *
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.easyant;
+
+import static org.junit.Assert.assertEquals;
+import org.junit.Test;
+
+public class PassingIntegrationTest {
+
+	@Test
+	public void testThatPasses() {
+		assertEquals("world", new HelloWorld().hello());
+	}
+}

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/main/java/org/apache/easyant/HelloWorld.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/main/java/org/apache/easyant/HelloWorld.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/main/java/org/apache/easyant/HelloWorld.java (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/main/java/org/apache/easyant/HelloWorld.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,25 @@
+/*
+ *  Copyright 2008-2010 the EasyAnt project
+ *
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.easyant;
+
+public class HelloWorld {
+	public String hello() {
+		return "world";
+	}
+}
\ No newline at end of file

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/main/java/org/apache/easyant/HelloWorld.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/main/java/org/apache/easyant/HelloWorld.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/integrationTest/src/main/java/org/apache/easyant/HelloWorld.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/test-junit-test.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/test-junit-test.xml?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/test-junit-test.xml (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/test-junit-test.xml Thu Feb 17 17:01:07 2011
@@ -0,0 +1,90 @@
+<!--
+	Copyright 2008-2010 the EasyAnt project
+
+	See the NOTICE file distributed with this work for additional information
+	regarding copyright ownership.
+
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+
+	http://www.apache.org/licenses/LICENSE-2.0
+
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+-->
+<project name="test-junit-test" xmlns:au="antlib:org.apache.ant.antunit">
+
+	<dirname file="${ant.file.test-junit-test}" property="test.dir"/>
+	<import file="${test.dir}/../../../common/test-utils.ant"/>
+
+	<target name="clean" description="remove stale build artifacts before / after each test">
+		<delete dir="${basedir}" includeemptydirs="true">
+			<include name="**/target/**"/>
+			<include name="**/lib/**"/>
+		</delete>
+	</target>
+
+	<target name="setUp" depends="clean"/>
+	<target name="tearDown" depends="clean"/>
+
+	<target name="testPassingIntegration" description="test successful compile / run of an integration test">
+
+		<!-- verify test preconditions -->
+		<au:assertFileDoesntExist message="test environment is clean" file="${test.dir}/integrationTest/target"/>
+
+        <!-- execute run tests and generate reports -->
+        <easyant dir="${test.dir}/integrationTest" args="-Dtest.integration.run.includes.pattern=**/PassingIntegrationTest.class"
+                 target="integration-test"/>
+
+		<!-- verify test artifacts created -->
+        <au:assertFileDoesntExist message="only requested test was run" file="${test.dir}/integrationTest/target/test/xml/TEST-org.apache.easyant.FailingIntegrationTest.xml"/>
+        <au:assertFileExists message="only requested test was run" file="${test.dir}/integrationTest/target/test/xml/TEST-org.apache.easyant.PassingIntegrationTest.xml"/>
+	</target>
+
+    <target name="testFailingIntegration" description="test failed compile / run of an integration test">
+
+        <!-- verify test preconditions -->
+        <au:assertFileDoesntExist message="test environment is clean" file="${test.dir}/integrationTest${test.dir}/integrationTest/target"/>
+
+        <!-- execute run tests and generate reports.  failure is expected. -->
+        <easyant dir="${test.dir}/integrationTest" args="-Dtest.integration.run.includes.pattern=**/FailingIntegrationTest.class"
+                 success="false" target="integration-test"/>
+
+        <!-- verify test artifacts created -->
+        <au:assertFileExists message="only requested test was run" file="${test.dir}/integrationTest/target/test/xml/TEST-org.apache.easyant.FailingIntegrationTest.xml"/>
+        <au:assertFileDoesntExist message="only requested test was run" file="${test.dir}/integrationTest/target/test/xml/TEST-org.apache.easyant.PassingIntegrationTest.xml"/>
+    </target>
+
+    <target name="testMixedResults" description="test run with some failure, some success">
+
+        <!-- verify test preconditions -->
+        <au:assertFileDoesntExist message="test environment is clean" file="${test.dir}/integrationTest/target"/>
+
+        <!-- execute run tests and generate reports.  failure is expected -->
+        <easyant dir="${test.dir}/integrationTest" success="false" target="integration-test"/>
+
+        <!-- verify test artifacts created -->
+        <au:assertFileExists message="all tests were run" file="${test.dir}/integrationTest/target/test/xml/TEST-org.apache.easyant.FailingIntegrationTest.xml"/>
+        <au:assertFileExists message="all tests were run" file="${test.dir}/integrationTest/target/test/xml/TEST-org.apache.easyant.PassingIntegrationTest.xml"/>
+    </target>
+
+    <target name="testJarTestCases" description="test the ability to run unit tests from a jar">
+
+        <!-- verify test preconditions -->
+        <au:assertFileDoesntExist message="test environment is clean" file="${test.dir}/testJar/definesTest/target"/>
+        <au:assertFileDoesntExist message="test environment is clean" file="${test.dir}/testJar/runsTest/target"/>
+
+        <!-- execute run tests and generate reports.  failure is expected -->
+        <easyant dir="${test.dir}/testJar" target="package test"/>
+
+        <!-- verify test artifacts created -->
+        <au:assertFileExists message="tests were run in source module" file="${test.dir}/testJar/definesTest/target/test/xml/TEST-org.apache.easyant.SimpleTest.xml"/>
+        <au:assertFileExists message="tests were also run from jar in downstream module" file="${test.dir}/testJar/runsTest//target/test/xml/TEST-org.apache.easyant.SimpleTest.xml"/>
+
+    </target>
+
+</project>
\ No newline at end of file

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/test-junit-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/test-junit-test.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/test-junit-test.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/module.ivy (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,31 @@
+<!--
+	Copyright 2009 the EasyAnt project
+
+	See the NOTICE file distributed with this work for additional information
+	regarding copyright ownership.
+
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+
+	http://www.apache.org/licenses/LICENSE-2.0
+
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+	<info module="definesTest" status="integration">
+        <extends organisation="org.apache.easyant" module="test-junit-jar-testJar" revision="latest.integration" location="../module.ivy"/>
+		<description>Defines a test jar, to test junit plugin.</description>
+		<ea:build mrid="org.apache.easyant.buildtypes#build-std-java;0.2">
+			<ea:plugin module="package-test-jar" revision="0.1" mandatory="true" as="test-jar"/>
+		</ea:build>
+	</info>
+	<publications>
+		<artifact name="definesTest" type="jar" conf="default,test"/>
+		<artifact name="definesTest-test" type="jar" conf="test"/>
+	</publications>
+</ivy-module>

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/main/java/org/apache/easyant/HelloWorld.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/main/java/org/apache/easyant/HelloWorld.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/main/java/org/apache/easyant/HelloWorld.java (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/main/java/org/apache/easyant/HelloWorld.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,25 @@
+/*
+ *  Copyright 2008-2010 the EasyAnt project
+ *
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.easyant;
+
+public class HelloWorld {
+	public String hello() {
+		return "world";
+	}
+}
\ No newline at end of file

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/main/java/org/apache/easyant/HelloWorld.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/main/java/org/apache/easyant/HelloWorld.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/main/java/org/apache/easyant/HelloWorld.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/test/java/org/apache/easyant/SimpleTest.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/test/java/org/apache/easyant/SimpleTest.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/test/java/org/apache/easyant/SimpleTest.java (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/test/java/org/apache/easyant/SimpleTest.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,30 @@
+/*
+ *  Copyright 2008-2010 the EasyAnt project
+ *
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.easyant;
+
+import static org.junit.Assert.assertEquals;
+import org.junit.Test;
+
+public class SimpleTest {
+
+	@Test
+	public void testThatPasses() {
+		assertEquals("world", new HelloWorld().hello());
+	}
+}

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/test/java/org/apache/easyant/SimpleTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/test/java/org/apache/easyant/SimpleTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/definesTest/src/test/java/org/apache/easyant/SimpleTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/module.ivy (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,31 @@
+<!--
+	Copyright 2009 the EasyAnt project
+
+	See the NOTICE file distributed with this work for additional information
+	regarding copyright ownership.
+
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+
+	http://www.apache.org/licenses/LICENSE-2.0
+
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+	<info organisation="org.apache.easyant" module="test-junit-jar-testJar" status="integration" revision="1.0">
+		<description>A multi-module project exercising the test-jar feature of the junit plugin.</description>
+		<ea:build mrid="org.apache.easyant.buildtypes#meta-build;0.2"/>
+	</info>
+	<configurations>
+		<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf"/>
+		<conf name="test" visibility="public" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases."/>
+	</configurations>
+    <dependencies>
+        <dependency org="junit" name="junit" rev="4.4" conf="test->default"/>
+    </dependencies>
+</ivy-module>

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/runsTest/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/runsTest/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/runsTest/module.ivy (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/runsTest/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,30 @@
+<!--
+	Copyright 2009 the EasyAnt project
+
+	See the NOTICE file distributed with this work for additional information
+	regarding copyright ownership.
+
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+
+	http://www.apache.org/licenses/LICENSE-2.0
+
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+	<info module="runsTest" status="integration" >
+        <extends organisation="org.apache.easyant" module="test-junit-jar-testJar" revision="latest.integration" location="../module.ivy"/>
+		<description>Runs a test jar defined in another module.</description>
+		<ea:build mrid="org.apache.easyant.buildtypes#build-std-java;0.2">
+            <ea:property name="test.scan.path" value="true"/>
+        </ea:build>
+	</info>
+	<dependencies>
+        <dependency org="org.apache.easyant" name="definesTest" rev="latest.integration" conf="test->test"/>
+	</dependencies>
+</ivy-module>

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/runsTest/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/runsTest/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-junit/0.2/testJar/runsTest/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/module.ivy (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,33 @@
+<!--
+	Copyright 2009 the EasyAnt project
+
+	See the NOTICE file distributed with this work for additional information
+	regarding copyright ownership.
+
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+
+	http://www.apache.org/licenses/LICENSE-2.0
+
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+	<info organisation="org.apache.easyant" module="test-testng-test" status="integration" >
+		<description>Tests the testng plugin.</description>
+		<ea:build mrid="org.apache.easyant.buildtypes#build-std-java;0.2">
+            <ea:property name="test.framework" value="testng"/>
+        </ea:build>
+	</info>
+	<configurations>
+		<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf"/>
+		<conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases."/>
+	</configurations>
+	<dependencies>
+		<dependency org="org.testng" name="testng" rev="5.12.1" conf="test->default"/>
+	</dependencies>
+</ivy-module>

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,30 @@
+/*
+ *  Copyright 2008-2010 the EasyAnt project
+ *
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.easyant;
+
+import static org.testng.Assert.assertEquals;
+import org.testng.annotations.Test;
+
+public class FailingIntegrationTest {
+
+	@Test
+	public void testThatFails() {
+		assertEquals(new HelloWorld().hello(), "dlrow");
+	}
+}

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/FailingIntegrationTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,30 @@
+/*
+ *  Copyright 2008-2010 the EasyAnt project
+ *
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.easyant;
+
+import static org.testng.Assert.assertEquals;
+import org.testng.annotations.Test;
+
+public class PassingIntegrationTest {
+
+	@Test
+	public void testThatPasses() {
+		assertEquals(new HelloWorld().hello(), "world");
+	}
+}

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/java/org/apache/easyant/PassingIntegrationTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-fail.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-fail.xml?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-fail.xml (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-fail.xml Thu Feb 17 17:01:07 2011
@@ -0,0 +1,9 @@
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
+
+<suite name="Integration Tests" verbose="1" >
+  <test name="Integration Tests">
+    <classes>
+      <class name="org.apache.easyant.FailingIntegrationTest"/>
+    </classes>
+  </test>
+</suite>
\ No newline at end of file

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-fail.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-fail.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-fail.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-pass.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-pass.xml?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-pass.xml (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-pass.xml Thu Feb 17 17:01:07 2011
@@ -0,0 +1,9 @@
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
+
+<suite name="Integration Tests" verbose="1" >
+  <test name="Integration Tests">
+    <classes>
+      <class name="org.apache.easyant.PassingIntegrationTest"/>
+    </classes>
+  </test>
+</suite>
\ No newline at end of file

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-pass.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-pass.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng-pass.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng.xml?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng.xml (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng.xml Thu Feb 17 17:01:07 2011
@@ -0,0 +1,10 @@
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
+
+<suite name="Integration Tests" verbose="1" >
+  <test name="Integration Tests">
+    <classes>
+      <class name="org.apache.easyant.PassingIntegrationTest"/>
+      <class name="org.apache.easyant.FailingIntegrationTest"/>
+    </classes>
+  </test>
+</suite>
\ No newline at end of file

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/integration-test/resources/testng.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/main/java/org/apache/easyant/HelloWorld.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/main/java/org/apache/easyant/HelloWorld.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/main/java/org/apache/easyant/HelloWorld.java (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/main/java/org/apache/easyant/HelloWorld.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,25 @@
+/*
+ *  Copyright 2008-2010 the EasyAnt project
+ *
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.easyant;
+
+public class HelloWorld {
+	public String hello() {
+		return "world";
+	}
+}
\ No newline at end of file

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/main/java/org/apache/easyant/HelloWorld.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/main/java/org/apache/easyant/HelloWorld.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/src/main/java/org/apache/easyant/HelloWorld.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/test-testng-test.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/test-testng-test.xml?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/test-testng-test.xml (added)
+++ incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/test-testng-test.xml Thu Feb 17 17:01:07 2011
@@ -0,0 +1,70 @@
+<!--
+	Copyright 2008-2010 the EasyAnt project
+
+	See the NOTICE file distributed with this work for additional information
+	regarding copyright ownership.
+
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+
+	http://www.apache.org/licenses/LICENSE-2.0
+
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+-->
+<project name="test-testng-test" xmlns:au="antlib:org.apache.ant.antunit">
+
+	<dirname file="${ant.file.test-testng-test}" property="test.dir"/>
+	<import file="${test.dir}/../../../common/test-utils.ant"/>
+
+	<target name="clean" description="remove stale build artifacts before / after each test">
+		<delete dir="${basedir}" includeemptydirs="true">
+			<include name="**/target/**"/>
+			<include name="**/lib/**"/>
+		</delete>
+	</target>
+
+	<target name="setUp" depends="clean"/>
+	<target name="tearDown" depends="clean"/>
+
+	<target name="testPassingIntegration" description="test successful compile / run of an integration test">
+
+		<!-- verify test preconditions -->
+		<au:assertFileDoesntExist message="test environment is clean" file="${basedir}/target"/>
+
+        <!-- execute run tests and generate reports -->
+        <easyant args="-Dtestng.filename=testng-pass.xml" target="integration-test"/>
+
+		<!-- verify test artifacts created -->
+        <au:assertFileExists file="${basedir}/target/test/xml/Integration Tests/index.html"/>
+	</target>
+
+    <target name="testFailingIntegration" description="test failed compile / run of an integration test">
+
+        <!-- verify test preconditions -->
+        <au:assertFileDoesntExist message="test environment is clean" file="${basedir}/target"/>
+
+        <!-- execute run tests and generate reports.  failure is expected. -->
+        <easyant success="false" args="-Dtestng.filename=testng-fail.xml" target="integration-test"/>
+
+        <!-- verify test artifacts created -->
+        <au:assertFileExists file="${basedir}/target/test/xml/Integration Tests/index.html"/>
+    </target>
+
+    <target name="testMixedResults" description="test run with some failure, some success">
+
+        <!-- verify test preconditions -->
+        <au:assertFileDoesntExist message="test environment is clean" file="${basedir}/target"/>
+
+        <!-- execute run tests and generate reports.  failure is expected -->
+        <easyant success="false" target="integration-test"/>
+
+        <!-- verify test artifacts created -->
+        <au:assertFileExists file="${basedir}/target/test/xml/Integration Tests/index.html"/>
+    </target>
+
+</project>
\ No newline at end of file

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/test-testng-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/test-testng-test.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/integration-test/antunit/org.apache.easyant.plugins/test-testng/0.2/test-testng-test.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/BuildConfigurationHelper.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/BuildConfigurationHelper.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/BuildConfigurationHelper.java (added)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/BuildConfigurationHelper.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,170 @@
+/* 
+ *  Copyright 2008-2010 the EasyAnt project
+ * 
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership. 
+ * 
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing, software 
+ *  distributed under the License is distributed on an "AS IS" BASIS, 
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and 
+ *  limitations under the License.
+ */
+package org.apache.easyant.core;
+
+import java.util.Arrays;
+import java.util.List;
+
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Project;
+
+/**
+ * This class provides a few helper methods to deal with build configurations
+ * 
+ * @author Jean Louis Boudart
+ * 
+ */
+public class BuildConfigurationHelper {
+
+	/**
+	 * This methods verify if at least one build configuration given in
+	 * arguments is contained in buildConfContainer.
+	 * 
+	 * @param buildConfs
+	 *            a string that represent build configurations names (can
+	 *            contains multiple configuration if they are comma separated)
+	 * @param buildConfContainer
+	 *            a string that represent build configurations container (can
+	 *            contains multiple configuration if they are comma separated)
+	 * @return true if the string contains at least one matching build
+	 *         configurations otherwise return false. If buildConfs is null this
+	 *         methods return true.
+	 */
+	public static boolean contains(String buildConfs, String buildConfContainer) {
+		if (buildConfs == null) {
+			return true;
+		}
+		return (null != getFirstBuildConfigurationMatching(buildConfs,
+				buildConfContainer));
+	}
+
+	/**
+	 * This methods return the first build configuration matching with the
+	 * criteria given in buildConfs argument.
+	 * 
+	 * @param buildConfs
+	 *            a string that represent build configurations names (can
+	 *            contains multiple configuration if they are comma separated)
+	 * @param buildConfContainer
+	 *            a string that represent build configurations container (can
+	 *            contains multiple configuration if they are comma separated)
+	 * @return a string that represent the first build configuration found.
+	 *         Return null if no build configuration matched.
+	 */
+	public static String getFirstBuildConfigurationMatching(String buildConfs,
+			String buildConfContainer) {
+		if (buildConfs == null || buildConfContainer == null) {
+			return null;
+		}
+		List<String> buildConfsToCheck = buildList(buildConfs);
+		List<String> availableBuildConfs = buildList(buildConfContainer);
+		for (String conf : buildConfsToCheck) {
+			if (availableBuildConfs.contains(conf)) {
+				return conf;
+			}
+		}
+
+		return null;
+	}
+
+	/**
+	 * This methods removes all the spaces in a list of confs separated by comma
+	 * 
+	 * @param confs
+	 *            a string that represent a list of conf separated by comma
+	 * @return a string that represent a list of conf separated by comma without
+	 *         spaces.
+	 */
+	public static String removeSpaces(String confs) {
+		return confs.replaceAll("\\s", "");
+	}
+
+	public static List<String> buildList(String conf) {
+		return Arrays.asList(removeSpaces(conf).split(","));
+
+	}
+
+	/**
+	 * Check if build configuration is active
+	 * 
+	 * @param requestedConfigurations
+	 *            build configuration to check
+	 * @param p
+	 *            the project (used to retrieve available and active build
+	 *            configuration)
+	 * @param message
+	 *            (prefix message used for log)
+	 * @return return true if buildconfiguration is active. This method also
+	 *         returns true if requestedConfigurations is null
+	 */
+	public static boolean isBuildConfigurationActive(
+			String requestedConfigurations, Project p, String message) {
+		if (requestedConfigurations == null) {
+			p.log(message + " not bound to any build configuration",Project.MSG_DEBUG);
+			return true;
+		}
+		List<String> buildConfigurationsList = buildList(requestedConfigurations);
+
+		// check consistency, here we consider that a build configuration must
+		// be explicitly declared
+		if (p.getProperty(EasyAntMagicNames.AVAILABLE_BUILD_CONFIGURATIONS) == null) {
+			throw new BuildException(
+					"there is no available build configuration");
+		}
+
+		List<String> availableBuildConfigurations = Arrays.asList(p
+				.getProperty(EasyAntMagicNames.AVAILABLE_BUILD_CONFIGURATIONS)
+				.split(","));
+
+		for (String conf : buildConfigurationsList) {
+			if (!availableBuildConfigurations.contains(conf)) {
+				throw new BuildException("unknown build configuration named "
+						+ conf);
+			}
+		}
+
+		// is there any activated build configuration matching with the build
+		// configurations defined?
+		if (p.getProperty(EasyAntMagicNames.MAIN_CONFS) != null) {
+			String buildConf = getFirstBuildConfigurationMatching(
+					requestedConfigurations, p
+							.getProperty(EasyAntMagicNames.MAIN_CONFS));
+			if (buildConf != null) {
+				p.log(message + " bound to build configuration " + buildConf,
+						Project.MSG_DEBUG);
+				return true;
+			} else {
+				// if no activated build configuration match with required build
+				// configuration, it means
+				// that related element should not be loaded
+				p
+						.log(
+								message
+										+ " not bound to any active build configuration. Requested build configuration was "
+										+ requestedConfigurations,
+								Project.MSG_DEBUG);
+				return false;
+			}
+		} else {
+			p.log("there is no activated build configuration",
+					Project.MSG_DEBUG);
+			return false;
+		}
+	}
+}

Propchange: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/BuildConfigurationHelper.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/BuildConfigurationHelper.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/BuildConfigurationHelper.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConfiguration.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConfiguration.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConfiguration.java (added)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConfiguration.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,494 @@
+/* 
+ *  Copyright 2008-2010 the EasyAnt project
+ * 
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership. 
+ * 
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing, software 
+ *  distributed under the License is distributed on an "AS IS" BASIS, 
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and 
+ *  limitations under the License.
+ */
+package org.apache.easyant.core;
+
+import java.io.File;
+import java.io.PrintStream;
+import java.net.URL;
+import java.util.HashSet;
+import java.util.Properties;
+import java.util.Set;
+import java.util.Vector;
+
+import org.apache.easyant.core.descriptor.PluginDescriptor;
+import org.apache.tools.ant.Project;
+
+/**
+ * This class is used to configure easyantEngine.
+ */
+public class EasyAntConfiguration {
+
+	/** Stream to use for logging. */
+	private PrintStream out = System.out;
+
+	/** Stream that we are using for logging error messages. */
+	private PrintStream err = System.err;
+
+	/** Our current message output status. Follows Project.MSG_XXX. */
+	private int msgOutputLevel = Project.MSG_INFO;
+
+	/** File that we are using for configuration. */
+	private File buildFile; /* null */
+
+	private File buildModule; /* null */
+
+	/** The build targets. */
+	private Vector<String> targets = new Vector<String>(1);
+	/** Set of properties that can be used by tasks. */
+	private Properties definedProps = new Properties();
+
+	/** Names of classes to add as listeners to project. */
+	private Vector<String> listeners = new Vector<String>(1);
+
+	/** Indicates whether this build is to support interactive input */
+	private boolean allowInput = true;
+
+	/** keep going mode */
+	private boolean keepGoingMode = false;
+
+	private boolean showMemoryDetails = false;
+
+	/**
+	 * The Ant logger class. There may be only one logger. It will have the
+	 * right to use the 'out' PrintStream. The class must implements the
+	 * BuildLogger interface.
+	 */
+	private String loggerClassname = null;
+
+	/**
+	 * The Ant InputHandler class. There may be only one input handler.
+	 */
+	private String inputHandlerClassname = null;
+
+	/**
+	 * Whether or not output to the log is to be unadorned.
+	 */
+	private boolean emacsMode = false;
+
+	/**
+	 * optional thread priority
+	 */
+	private Integer threadPriority = null;
+
+	/**
+	 * proxy flag: default is false
+	 */
+	private boolean proxy = false;
+
+	private Set<PluginDescriptor> systemPlugins = new HashSet<PluginDescriptor>();
+
+	private Set<String> activeBuildConfigurations = new HashSet<String>();
+
+	private ClassLoader coreLoader;
+
+	private boolean buildModuleLookupEnabled = false;
+
+	private String easyantIvySettingsFile;
+	private String easyantIvySettingsUrl;
+
+    private boolean offline;
+
+	/**
+	 * Get the ivysettings.xml file used by easyant
+	 * 
+	 * @return a string representing the ivysettings.xml used by easyant
+	 */
+	public String getEasyantIvySettingsFile() {
+		return easyantIvySettingsFile;
+	}
+
+	/**
+	 * Set the ivysettings.xml file used by easyant
+	 * 
+	 * @param easyantIvySettingsFile
+	 *            a string representing the ivysettings.xml used by easyant
+	 */
+	public void setEasyantIvySettingsFile(String easyantIvySettingsFile) {
+		this.easyantIvySettingsFile = easyantIvySettingsFile;
+	}
+
+	/**
+	 * Get the url of a ivysettings.xml used by easyant
+	 * 
+	 * @return a string representing the ivysettings.xml url used by easyant
+	 */
+	public String getEasyantIvySettingsUrl() {
+		return easyantIvySettingsUrl;
+	}
+
+	/**
+	 * Set the url of a ivysettings.xml used by easyant
+	 * 
+	 * @param easyantIvySettingsUrl
+	 *            a string representing the ivysettings.xml url used by easyant.
+	 */
+	public void setEasyantIvySettingsUrl(String easyantIvySettingsUrl) {
+		this.easyantIvySettingsUrl = easyantIvySettingsUrl;
+	}
+	
+	/**
+	 * Set the url of a ivysettings.xml used by easyant
+	 * 
+	 * @param easyantIvySettingsUrl
+	 *            a string representing the ivysettings.xml url used by easyant.
+	 */
+	public void setEasyantIvySettingsUrl(URL easyantIvySettingsUrl) {
+		this.easyantIvySettingsUrl = easyantIvySettingsUrl.toString();
+	}
+
+	/**
+	 * Get the output level Default is Project.MSG_INFO Follows Project.MSG_XXX.
+	 * 
+	 * @return a int representing the output level
+	 */
+	public int getMsgOutputLevel() {
+		return msgOutputLevel;
+	}
+
+	/**
+	 * Set the output level Default is Project.MSG_INFO Follows Project.MSG_XXX.
+	 * 
+	 * @param msgOutputLevel
+	 *            a int representing the output level
+	 */
+	public void setMsgOutputLevel(int msgOutputLevel) {
+		this.msgOutputLevel = msgOutputLevel;
+	}
+
+	/**
+	 * Get the buildFile that will be included
+	 * 
+	 * @return a file representing the buildFile included in this project
+	 */
+	public File getBuildFile() {
+		return buildFile;
+	}
+
+	/**
+	 * Set the buildFile that will be included
+	 * 
+	 * @param buildFile
+	 *            a file representing the buildFile included in this project
+	 */
+	public void setBuildFile(File buildFile) {
+		this.buildFile = buildFile;
+	}
+
+	/**
+	 * Get the buildModule that will be included
+	 * 
+	 * @return a file representing the buildModule included in this project
+	 */
+	public File getBuildModule() {
+		return buildModule;
+	}
+
+	/**
+	 * Set the buildModule that will be included
+	 * 
+	 * @param buildModule
+	 *            a file representing the buildModule included in this project
+	 */
+	public void setBuildModule(File buildModule) {
+		this.buildModule = buildModule;
+	}
+
+	/**
+	 * Get a Set of properties that can be used by tasks.
+	 * 
+	 * @return a Set of properties that can be used by tasks.
+	 */
+	public Properties getDefinedProps() {
+		return definedProps;
+	}
+
+	/**
+	 * Set of properties that can be used by tasks.
+	 * 
+	 * @param definedProps
+	 *            a Set of properties that can be used by tasks.
+	 */
+	public void setDefinedProps(Properties definedProps) {
+		this.definedProps = definedProps;
+	}
+
+	/**
+	 * Indicates whether this build is to support interactive input
+	 * 
+	 * @return true if input is allowed, false if we are in batchmode
+	 */
+	public boolean isAllowInput() {
+		return allowInput;
+	}
+
+	/**
+	 * Indicates whether this build is to support interactive input
+	 * 
+	 * @param allowInput
+	 */
+	public void setAllowInput(boolean allowInput) {
+		this.allowInput = allowInput;
+	}
+
+	public boolean isKeepGoingMode() {
+		return keepGoingMode;
+	}
+
+	public void setKeepGoingMode(boolean keepGoingMode) {
+		this.keepGoingMode = keepGoingMode;
+	}
+
+	/**
+	 * Should we print memory details?
+	 * 
+	 * @return true if we want to print memory details
+	 */
+	public boolean isShowMemoryDetails() {
+		return showMemoryDetails;
+	}
+
+	/**
+	 * Set to true if you want to print memory details Default is false.
+	 * 
+	 * @param showMemoryDetails
+	 */
+	public void setShowMemoryDetails(boolean showMemoryDetails) {
+		this.showMemoryDetails = showMemoryDetails;
+	}
+
+	/**
+	 * Get the default logger classname The Ant logger class. There may be only
+	 * one logger. It will have the right to use the 'out' PrintStream. The
+	 * class must implements the BuildLogger interface.
+	 * 
+	 * @return a string representing the logger classname
+	 */
+	public String getLoggerClassname() {
+		return loggerClassname;
+	}
+
+	/**
+	 * Set the default logger classname The Ant logger class. There may be only
+	 * one logger. It will have the right to use the 'out' PrintStream. The
+	 * class must implements the BuildLogger interface.
+	 * 
+	 * @param loggerClassname
+	 *            a string representing the logger classname
+	 */
+	public void setLoggerClassname(String loggerClassname) {
+		this.loggerClassname = loggerClassname;
+	}
+
+	/**
+	 * The Ant InputHandler class. There may be only one input handler.
+	 * 
+	 * @return a string representing the input handler classname
+	 */
+	public String getInputHandlerClassname() {
+		return inputHandlerClassname;
+	}
+
+	/**
+	 * set The Ant InputHandler class. There may be only one input handler.
+	 * 
+	 * @param inputHandlerClassname
+	 *            a string representing the input handler classname
+	 */
+	public void setInputHandlerClassname(String inputHandlerClassname) {
+		this.inputHandlerClassname = inputHandlerClassname;
+	}
+
+	/**
+	 * Whether or not output to the log is to be unadorned.
+	 * 
+	 * @return true if the output to the log is to be unadorned, otherwise false
+	 */
+	public boolean isEmacsMode() {
+		return emacsMode;
+	}
+
+	/**
+	 * Whether or not output to the log is to be unadorned.
+	 * 
+	 * @param emacsMode
+	 */
+	public void setEmacsMode(boolean emacsMode) {
+		this.emacsMode = emacsMode;
+	}
+
+	/**
+	 * Get the threadPriority
+	 * 
+	 * @return a integer representing the thread priority.
+	 */
+	public Integer getThreadPriority() {
+		return threadPriority;
+	}
+
+	public void setThreadPriority(Integer threadPriority) {
+		this.threadPriority = threadPriority;
+	}
+
+	public boolean isProxy() {
+		return proxy;
+	}
+
+	public void setProxy(boolean proxy) {
+		this.proxy = proxy;
+	}
+
+	public Vector<String> getTargets() {
+		return targets;
+	}
+
+	public void setTargets(Vector<String> targets) {
+		this.targets = targets;
+	}
+
+	/**
+	 * Names of classes to add as listeners to project.
+	 * 
+	 * @return a vector of listerners
+	 */
+	public Vector<String> getListeners() {
+		return listeners;
+	}
+
+	/**
+	 * Names of classes to add as listeners to project.
+	 * 
+	 * @param listeners
+	 */
+	public void setListeners(Vector<String> listeners) {
+		this.listeners = listeners;
+	}
+
+	/**
+	 * Stream to use for logging.
+	 * 
+	 * @return a stream used for logging
+	 */
+	public PrintStream getOut() {
+		return out;
+	}
+
+	/**
+	 * Stream to use for logging.
+	 * 
+	 * @param out stream to use for logging
+	 */
+	public void setOut(PrintStream out) {
+		this.out = out;
+	}
+
+	/**
+	 * Stream that we are using for logging error messages.
+	 * 
+	 * @return stream used for error logging
+	 */
+	public PrintStream getErr() {
+		return err;
+	}
+
+	/**
+	 * Stream that we are using for logging error messages.
+	 * 
+	 * @param err stream used for error logging 
+	 */
+	public void setErr(PrintStream err) {
+		this.err = err;
+	}
+
+	/**
+	 * Get a set of system plugins that will be included everytime
+	 * 
+	 * @return a set of system plugins that will be included everytime
+	 */
+	public Set<PluginDescriptor> getSystemPlugins() {
+		return systemPlugins;
+	}
+
+	/**
+	 * set of system plugins that will be included everytime
+	 * 
+	 * @param systemPlugins
+	 *            a set of system plugins that will be included everytime
+	 */
+	protected void setSystemPlugins(Set<PluginDescriptor> systemPlugins) {
+		this.systemPlugins = systemPlugins;
+	}
+
+	/**
+	 * Add a system plugin that will be included everytime
+	 * 
+	 * @param pluginDescriptor
+	 *            representing a plugin
+	 * @return true if the plugin has been added to the list of system plugins, otherwise false
+	 */
+	public boolean addSystemPlugin(PluginDescriptor pluginDescriptor) {
+		if (pluginDescriptor == null) {
+			throw new IllegalArgumentException(
+					"pluginDescriptor cannot be null");
+		}
+		return this.systemPlugins.add(pluginDescriptor);
+	}
+
+	public ClassLoader getCoreLoader() {
+		return coreLoader;
+	}
+
+	public void setCoreLoader(ClassLoader coreLoader) {
+		this.coreLoader = coreLoader;
+	}
+
+	/**
+	 * Search parent directories for the build file.
+	 * 
+	 * @return true if easyantEngine should lookup for buildModule
+	 */
+	public boolean isBuildModuleLookupEnabled() {
+		return this.buildModuleLookupEnabled;
+	}
+
+	/**
+	 * Search parent directories for the build file.
+	 * 
+	 * @param buildModuleLookupEnabled
+	 *            true if easyantEngine should lookup for buildModule
+	 */
+	public void setBuildModuleLookupEnabled(boolean buildModuleLookupEnabled) {
+		this.buildModuleLookupEnabled = buildModuleLookupEnabled;
+	}
+
+	public Set<String> getActiveBuildConfigurations() {
+		return activeBuildConfigurations;
+	}
+
+	public void setActiveBuildConfigurations(Set<String> buildConfigurations) {
+		this.activeBuildConfigurations = buildConfigurations;
+	}
+
+    public void setOffline(boolean offline) {
+        this.offline = offline;
+    }
+
+    public boolean isOffline() {
+        return offline;
+    }
+}

Propchange: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConfiguration.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConfiguration.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConfiguration.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConstants.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConstants.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConstants.java (added)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConstants.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,85 @@
+/* 
+ *  Copyright 2008-2010 the EasyAnt project
+ * 
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership. 
+ * 
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing, software 
+ *  distributed under the License is distributed on an "AS IS" BASIS, 
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and 
+ *  limitations under the License.
+ */
+package org.apache.easyant.core;
+
+
+public interface EasyAntConstants {
+	
+	/**
+	 * Name of the task name used for internal easyant jobs
+	 */
+	public static final String EASYANT_TASK_NAME = "easyant";
+	
+	/**
+	 * Name of the default build module
+	 */
+	public static final String DEFAULT_BUILD_MODULE = "module.ivy";
+	
+	/**
+	 * Name of the default build file
+	 */
+	public static final String DEFAULT_BUILD_FILE = "module.ant";
+	
+	/**
+	 * Name of the default override build file
+	 */
+	public static final String DEFAULT_OVERRIDE_BUILD_FILE = "override.module.ant";
+
+	/**
+	 * URI of easyant module descriptor namespace
+	 */
+	public static final String EASYANT_MD_NAMESPACE = "http://www.easyant.org";
+
+	/**
+	 * Name of the default target
+	 */
+	public static final String DEFAULT_TARGET = "doit";
+
+	/**
+	 * Name of the default easyant plugins organisation
+	 */
+	public static final String EASYANT_PLUGIN_ORGANISATION = "org.apache.easyant.plugins";
+	
+	/**
+	 * Name of the default easyant build types organisation
+	 */
+	public static final String EASYANT_BUILDTYPES_ORGANISATION = "org.apache.easyant.buildtypes";
+	
+	/**
+	 * Name of the default easyant skeletons organisation
+	 */
+	public static final String EASYANT_SKELETONS_ORGANISATION = "org.apache.easyant.skeletons";
+
+	/**
+	 * Default location of user's easyant ivysettings file
+	 */
+	public static final String DEFAULT_USER_EASYANT_IVYSETTINGS = "${user.home}/.easyant/easyant-ivysettings.xml";
+
+	/**
+	 * Default location of global easyant ivysettings file
+	 */
+	public static final String DEFAULT_GLOBAL_EASYANT_IVYSETTINGS = "file://${easyant.home}/easyant-ivysettings.xml";
+
+	/**
+	 * Default value for pre module targets
+	 */
+	public static final String DEFAULT_PRE_MODULE_TARGETS = "clean";
+	
+
+}

Propchange: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConstants.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntConstants.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message