centipede2/src/junit/org/krysalis/centipede2/ant build.xml,NONE,1.1 ImportAntletTaskTest.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/centipede2/src/junit/org/krysalis/centipede2/ant
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11332/src/junit/org/krysalis/centipede2/ant

Modified Files:
	ImportAntletTaskTest.java 
Added Files:
	build.xml 
Log Message:
import antlet now passes the junit helloworld test!!

--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<project name="ruper-synchronize-test" basedir="../../../../../.." default="helloworld">
    
    <property name="antlet.repo" value="${basedir}/build/antlets/"/>
    <delete dir="${ant.home}/tools/antlet/helloworld"/>
    <mkdir dir="${antlet.repo}"/>
    <jar basedir="src/test-antlets/helloworld" destfile="${antlet.repo}/helloworld.jar" ></jar>
    
    <!-- Pickup the ability to importAntlets -->
	<typedef 
    	resource="org/krysalis/centipede2/ant/antlib.xml"/>
    
    <!-- Import the Java Antlet -->
    <importAntlet 
    	name="helloworld" 
     	href="file:///${antlet.repo}" />
 	
    <target name="helloworld" depends="say"/>
</project>
Index: ImportAntletTaskTest.java
===================================================================
RCS file: /cvsroot/metamorphosis/centipede2/src/junit/org/krysalis/centipede2/ant/ImportAntletTaskTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ImportAntletTaskTest.java	24 Dec 2003 19:18:02 -0000	1.1
--- ImportAntletTaskTest.java	5 Feb 2004 08:41:01 -0000	1.2
***************
*** 26,29 ****
--- 26,54 ----
  	}
  
+ 	/* (non-Javadoc)
+ 	 * @see junit.framework.TestCase#setUp()
+ 	 */
+ 	protected void setUp() throws Exception {
+ 		// TODO Auto-generated method stub
+ 		super.setUp();
+ 		this.configureProject("src/junit/org/krysalis/centipede2/ant/build.xml");
+ 	}
+ 
+ 	/* (non-Javadoc)
+ 	 * @see junit.framework.TestCase#tearDown()
+ 	 */
+ 	protected void tearDown() throws Exception {
+ 		// TODO Auto-generated method stub
+ 		super.tearDown();
+ 	}
+ 	
+ 	/**
+ 	 * Test the helloworld target
+ 	 */
+ 	public void testHelloWorld() {
+ 		expectLogContaining("helloworld","Hello World!");	
+ 	
+ 	}
+ 
  }
  /*



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.