Version 12

    Building JBoss AOP from Subversion.

     

    JBoss AOP is hosted here at JBoss. Click here to see how to access JBoss CVS.

     

    JBoss AOP 2.0

    Current SVN head is JBoss AOP 2.0, and AOP 2.0 has been pulled out to a standalone repository. To build from svn:

     

    The JBoss AOP build has been mavenised. You need to use maven 2.0.8 or later (the aop team are currently using maven 2.0.9)  First you need to make sure that you have the following profile in your maven settings.xml

    <profiles>
         <profile>
            <id>jboss</id>
            <properties>
               <maven.repository.root>/C:/cygwin/home/Kabir/sourcecontrol/live.mavenrepo</maven.repository.root>
             </properties>
         </profile>
         <profile>
          <id>jboss.repository</id>
          <activation>
            <activeByDefault>true</activeByDefault>
          </activation>
          <repositories>
            <repository>
              <id>repository.jboss.org</id>
              <url>http://repository.jboss.org/maven2</url>
              <releases>
                <enabled>true</enabled>
              </releases>
              <snapshots>
                <enabled>false</enabled>
              </snapshots>
            </repository>
            <repository>
              <id>snapshots.jboss.org</id>
              <url>http://snapshots.jboss.org/maven2</url>
              <releases>
                <enabled>false</enabled>
              </releases>
              <snapshots>
                <enabled>true</enabled>
              </snapshots>
            </repository>
          </repositories>
          <pluginRepositories>
            <pluginRepository>
              <id>repository.jboss.org</id>
              <url>http://repository.jboss.org/maven2</url>
              <releases>
                <enabled>true</enabled>
              </releases>
              <snapshots>
                <enabled>false</enabled>
              </snapshots>
            </pluginRepository>
            <pluginRepository>
              <id>snapshots.jboss.org</id>
              <url>http://snapshots.jboss.org/maven2</url>
              <releases>
                <enabled>false</enabled>
              </releases>
              <snapshots>
                <enabled>true</enabled>
              </snapshots>
            </pluginRepository>
          </pluginRepositories>
        </profile>
       ...
    </profiles>
    

     

    $ svn co https://svn.jboss.org/repos/jbossas/projects/aop/trunk/ jboss-aop
    

    (non-committers should use the anonymous svn url http://anonsvn.jboss.org/repos/jbossas/projects/aop/trunk/)

    $ cd jboss-aop/build
    $ ./build.sh (this populates the thirdparty folder and builds the jboss-aop/aop project)
    

     

    If when running jboss-aop/build/build.sh you get a "Could not locate Ant; check $ANT or $ANT_HOME" error, make sure to set proper file permissions for jboss-aop/tools/bin/ant

     

    The AOP code is in jboss-aop/aop. Once you have populated the thirdparty folder, you can recompile aop by

    $ cd ../aop
    $ mvn clean
    $ mvn install
    

     

    Running the tests

    From within the jboss-aop/aop folder:

    $ build.sh -f build-tests-jdk50.xml tests
    

     

    This runs the tests with different combinations of weaving mode and load-time/compile-time weaving.

     

    JBoss AOP 1.5

    The structure of JBoss AOP 1.5 branch is very similar to the one of JBoss AOP 2.0.

    You can checkout the branch and compile the project with the following commands:

    $ svn co https://svn.jboss.org/repos/jbossas/branches/Branch_AOP_1_5/ jboss-aop
    $ cd jboss-aop/build
    $ build.sh (build.bat on windows)
    

    Notice that running build/build.sh will also populate your thirdparty directory.

    The AOP code is in jboss-aop/aop and can be recompiled with the same comand we use in JBoss AOP 2.0:

    $ cd ../aop
    $ build.sh clean
    $ build.sh 
    

     

    To run the tests, use the following command inside jboss-aop/aop folder:

    build.sh tests
    

     

    Aspect Library

    The aspects shipping with each AOP release are from the JBoss 4.0 branch, to obtain a particular version:

    $ svn checkout https://svn.jboss.org/repos/jbossas/branches/Branch_4_0/ jboss-4.0.x
    $ cd jboss-4.0.x/build
    $ build.sh (build.bat on windows)
    

    The jboss-4.0.x/aspects directory of the branch is tagged with JBOSS_ASPECTS_1_5_0 (for the JBoss AOP 1.5.0 release) etc. for each point release