vinayc      2003/08/28 11:25:55

  Added:       integrationtests maven.xml project.properties project.xml
  Log:
  Refactorize (includes modularize,mavenize & rest of the nice's)
  
  Revision  Changes    Path
  1.1                  incubator-altrmi/integrationtests/maven.xml
  
  Index: maven.xml
  ===================================================================
  <project default="test:test" xmlns:maven="jelly:maven" xmlns:j="jelly:core" 
xmlns:util="jelly:util" xmlns:ant="jelly:ant">
  
        <property file="..\project.properties"/>
  
        <postGoal name="test:compile">
                
                 
                 <!-- /**Generate proxies for test cases */ -->
                 <ant:taskdef name="altrmiproxies" 
classname="org.apache.altrmi.tools.generator.ant.ProxyGenerationTask">
                        <ant:classpath>
                                <ant:path refid="maven.dependency.classpath"/>
                        </ant:classpath>
                </ant:taskdef>
  
                <ant:mkdir dir="${maven.build.dir}/genjava"/>
                <ant:altrmiproxies genname="Hello" 
srcgendir="${maven.build.dir}/genjava" 
                                                        
classgendir="${maven.build.dir}/test-classes" verbose="true"
                                                        
interfaces="org.apache.altrmi.test.TestInterface"
                                                        
additionalfacades="org.apache.altrmi.test.TestInterface3,org.apache.altrmi.test.TestInterface2"
                                                        
callbackfacades="org.apache.altrmi.test.TestCallBackListener">
                        <ant:classpath>
                                <ant:path refid="maven.dependency.classpath"/>
                                <ant:pathelement 
location="${plugin.getDependencyPath('altrmi:altrmi-tools')}"/>
                                <ant:pathelement 
location="${maven.build.dir}/test-classes"/>
                        </ant:classpath>
                </ant:altrmiproxies> 
  
                <ant:altrmiproxies genname="OurAccountManager" 
srcgendir="${maven.build.dir}/genjava" 
                        classgendir="${maven.build.dir}/test-classes" 
verbose="true" 
                        
interfaces="org.apache.altrmi.test.clientcontext.AccountManager">
                  <ant:classpath>
                                <ant:path refid="maven.dependency.classpath"/>
                                <ant:pathelement 
location="${plugin.getDependencyPath('altrmi:altrmi-tools')}"/>
                                <ant:pathelement 
location="${maven.build.dir}/test-classes"/>             
                  </ant:classpath>
                </ant:altrmiproxies>
  
  
                <!-- /** Generate ASync attributes for test cases*/ -->
                <ant:taskdef name="attributes" 
classname="org.apache.commons.attributes.task.AttributesCompiler">
              <ant:classpath>
                                <ant:path refid="maven.dependency.classpath"/>
                                <ant:pathelement 
location="${plugin.getDependencyPath('commons-attributes')}"/>
                        </ant:classpath>
          </ant:taskdef>
                <!-- TODO: Remove hardcoded test src dir (vinay) -->
          <ant:attributes src="${maven.src.dir}/test/" 
dest="${maven.build.dir}/test-classes"/>
  
  
  
        </postGoal>
  
        <!-- /** Aggregate all jars within the Altrmi Dist directory. -->
        <postGoal name="test:test">
  
                <j:forEach var="dep" items="${pom.dependencies}">
                        
                        <mkdir dir="${basedir}/../${altrmi.dist.dir}"/>
                        <!-- copy all altrmi jars to altrmi distribution 
directory -->
                        <j:if test="${ dep.artifactDirectory.startsWith( 
'altrmi' ) }">
                                <copy   
todir="${basedir}/../${altrmi.dist.dir}"        
                                                
file="${maven.repo.local}/${dep.artifactDirectory}/jars/${dep.artifact}"/>
                        </j:if>
                </j:forEach>
        </postGoal>
  </project>
  
  
  
  1.1                  incubator-altrmi/integrationtests/project.properties
  
  Index: project.properties
  ===================================================================
  maven.jar.override=on
  maven.jar.commons-attributes=${basedir}/../lib/commons-attributes-0.1.jar
  maven.jar.bcel=${basedir}/../lib/bcel-SNAPSHOT.jar
  maven.jar.tools=${java.home}/../lib/tools.jar
  maven.junit.fork=true
  
  
  
  1.1                  incubator-altrmi/integrationtests/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  
  <project>
  
    <extend>${basedir}/../project.xml</extend>
  
    <groupId>altrmi</groupId>
    <id>altrmi-integrationtests</id>
    <name>AltRMI Integration Test Cases</name>
    <package>org.apache.altrmi.test</package>
  
    <inceptionYear>2002</inceptionYear>
    <shortDescription>
      AltRMI Test Cases.
    </shortDescription>
  
    <dependencies>
        <dependency>
                <groupId>altrmi</groupId>
                <artifactId>altrmi-common</artifactId>
                <version>${pom.currentVersion}</version>
        </dependency>
        <dependency>
                <groupId>altrmi</groupId>
                <artifactId>altrmi-client-api</artifactId>
                <version>${pom.currentVersion}</version>
        </dependency>
        <dependency>
                <groupId>altrmi</groupId>
                <artifactId>altrmi-client-impl</artifactId>
                <version>${pom.currentVersion}</version>
        </dependency>
        <dependency>
                <groupId>altrmi</groupId>
                <artifactId>altrmi-server-api</artifactId>
                <version>${pom.currentVersion}</version>
        </dependency>
        <dependency>
                <groupId>altrmi</groupId>
                <artifactId>altrmi-server-impl</artifactId>
                <version>${pom.currentVersion}</version>
        </dependency>
        <dependency>
                <groupId>altrmi</groupId>
                <artifactId>altrmi-tools</artifactId>
                <version>${pom.currentVersion}</version>
        </dependency>
        <dependency>
                <id>junit</id>
                <version>3.8.1</version>
        </dependency>
        <dependency>
                <id>commons-attributes</id>
                <version>0.1</version>
        </dependency>
        <dependency>
                <id>qdox</id>
                <version>1.2</version>
        </dependency>
        <dependency>
                <id>bcel</id>
                <version>SNAPSHOT</version>
        </dependency>
        <dependency>
                <id>tools</id>
                <jar>tools.jar</jar>
                <version>included in JDK/JRE</version>
        </dependency>
        <dependency>
                <id>commons-logging</id>
                <version>1.0.3</version>
        </dependency>
  
    </dependencies>
  
    <reports>
        <report>maven-junit-report-plugin</report>
    </reports>
  
  </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to