You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.3KB

123456789101112131415161718192021222324252627
  1. # AspectJ
  2. ## Building
  3. AspectJ has a multi module maven build. Although various modules produce intermediate results, the key artifacts at the end of the build are:
  4. * `aspectjrt` - the AspectJ runtime
  5. * `aspectjweaver` - the AspectJ weaver
  6. * `aspectjtools` - the AspectJ compiler
  7. These are the artifacts published to maven central for each release. In addition there is an installer that can be run with `java -jar` to install AspectJ onto Windows/Mac/Linux. This installer is produced by the installer sub module.
  8. In the root of a cloned AspectJ simply run:
  9. `./mvnw clean install`
  10. This will build all the modules, run all the tests and install the key artifacts in your local repository.
  11. ## Running the tests in eclipse
  12. Once you have imported all the projects using `m2e`, close the `org.eclipse.jdt.core` project (TOBEFIXED), then there is a special module called `run-all-junit-tests` and within that a `RunTheseBeforeYouCommitTests` class that can be run with the JUnit launcher. This will execute all the tests in each module plus the compiler tests in the `tests` module. When you close `org.eclipse.jdt.core` you might need to do a maven refresh on the `run-all-junit-tests` project.
  13. ## Setting version for release:
  14. mvn versions:set -DgroupId=org.aspectj -DartifactId=* -DoldVersion=1.9.3.BUILD-SNAPSHOT -DnewVersion=1.9.3