Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

What is in the AWare distribution?

The Aware distribution is splitted by components in the following way, so that it is possible to use (and build or test) one single component if you are interested in only one of those:

Code Block
xml
xml
root
    build.xml
    /lib                                            contains a lot of dependancies, but each component does not use them all
    /src                                            for Aware shared classes
    /components/
        <component name>                            a specific component
           /main
              /org/codehaus/aware/<component name>/ the component name is a reserved package name for the component source
           /test
           /build.xml

Running AWare samples

To run AWare samples you will need:

  • an AspectWerkz 1.x distribution
  • set ASPECTWERKZ_HOME environment variable to point to the folder containing the AspectWerkz distribution
  • have an Ant installation on your system
  • invoke the Ant sample target, specifying if you want all components or only a specific one

Note: if you plan to build your own version of AspectWerkz 1.0 from the cvs, remember to checkout from the branch tagged "branch_1_0". Refer to AspectWerkz documentation for more information.

Code Block
java
java
// we assume you have Ant installed,
// a suitable AspectWerkz distribution in C:\aw
// and AWare in C:\aware

// note: do not add ending slash
set ASPECTWERKZ_HOME=C:\aw

cd C:\aware

// run a specific component test or sample (see component documentation)
ant sample:<component name>
// e.g. :
// ant sample:jmx

Component names are the name of the components sub-folder: indexing, sequence, jmx, etc, and you should read Components documentation to learn more about them.

Building AWare

To (re)build an AWare distribution you will need

  • an AspectWerkz 1.x distribution
  • set ASPECTWERKZ_HOME environment variable to point to the folder containing the AspectWerkz distribution
  • have an Ant installation on your system
  • invoke the Ant target, specifying if you want all components or only a specific one
Code Block
java
java
// we assume you have Ant installed,
// a suitable AspectWerkz distribution in C:\aw
// and AWare in C:\aware

// note: do not add ending slash
set ASPECTWERKZ_HOME=C:\aw

cd C:\aware

// run a specific component test or sample (see component documentation)
ant sample:<component name>
ant compile:<component name>
ant test:<component name>

...

// rebuild the AWare jar from scratch
ant clean
ant compile
ant jars
//
// "ant test" might be a good idea as well