From 70a0f6e84cf7b03c7edf444d643025357c945cad Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 13 Oct 2009 15:15:53 +0200 Subject: Pretty big revamp of the build script system. Downloading dependencies is now done automatically by this script, which also means that e.g. lombok-patcher.jar no longer needs to be checked in. --- buildScripts/compile.ant.xml | 6 +- buildScripts/deps.ant.xml | 44 ++--- buildScripts/deps/eclipse-debug-target.template | 34 ++++ buildScripts/deps/eclipse-debugging.ant.xml | 253 ++++++++++++++++++++++++ buildScripts/deps/lombok-patcher.ant.xml | 158 +++++++++++++++ buildScripts/git.ant.xml | 73 +++++++ buildScripts/maven.ant.xml | 6 +- buildScripts/publish.ant.xml | 108 +++++----- buildScripts/website.ant.xml | 3 +- 9 files changed, 606 insertions(+), 79 deletions(-) create mode 100644 buildScripts/deps/eclipse-debug-target.template create mode 100644 buildScripts/deps/eclipse-debugging.ant.xml create mode 100644 buildScripts/deps/lombok-patcher.ant.xml create mode 100644 buildScripts/git.ant.xml (limited to 'buildScripts') diff --git a/buildScripts/compile.ant.xml b/buildScripts/compile.ant.xml index 075bc394..b5aa990f 100644 --- a/buildScripts/compile.ant.xml +++ b/buildScripts/compile.ant.xml @@ -20,8 +20,10 @@ THE SOFTWARE. --> - This buildfile is part of projectlombok.org. It responsible for compiling the main -lombok code including the various agents. + +This buildfile is part of projectlombok.org. It responsible for compiling the main +lombok code including the various agents. + diff --git a/buildScripts/deps.ant.xml b/buildScripts/deps.ant.xml index b9d447f8..f3a07ec8 100644 --- a/buildScripts/deps.ant.xml +++ b/buildScripts/deps.ant.xml @@ -19,33 +19,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - - This buildfile is part of projectlombok.org. It responsible for finding, downloading, -and building dependencies. + + +This buildfile is part of projectlombok.org. It responsible for finding, downloading, +and building dependencies. + - - - - + + + + + - - Skipping lombok.patcher. clone from: http://github.com/rzwitserloot/lombok.patcher + + + + - - - - - - - - + + + + - - - ** UPDATED: lib/lombok/lombok-patcher.jar + + + + diff --git a/buildScripts/deps/eclipse-debug-target.template b/buildScripts/deps/eclipse-debug-target.template new file mode 100644 index 00000000..99e4237c --- /dev/null +++ b/buildScripts/deps/eclipse-debug-target.template @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/buildScripts/deps/eclipse-debugging.ant.xml b/buildScripts/deps/eclipse-debugging.ant.xml new file mode 100644 index 00000000..16b4361c --- /dev/null +++ b/buildScripts/deps/eclipse-debugging.ant.xml @@ -0,0 +1,253 @@ + + + +This buildfile is part of projectlombok.org. It responsible for downloading, updating, and setting up the eclipse modules that are useful to have when working on lombok's eclipse integration. It's optional. + + + + + + + + + + + + + + + + +Do you want me to create an eclipse debug target so you can launch a second eclipse, lombok-ized, in the eclipse debugger? + + + + + + + + + + + + +Do you want me to grab from CVS the 3.5 version of org.eclipse.jdt.core? +Lombok integrates with this eclipse module often, and you should grab it if you're going to work on lombok's eclipse integration. + + + + + + + + + + + +Do you want me to grab from CVS the 3.5 version of org.eclipse.jdt.ui? +Lombok integrates with this eclipse module often, and you should grab it if you're going to work on lombok's eclipse integration. + + + + + + + + + + + +Do you want me to grab from CVS the 3.5 version of org.eclipse.core.runtime? +Interacting with the filer and messager (for errors and warnings) requires core.runtime, as well as interacting with modules. +You may not need it unless you're going to work on those areas. + + + + + + + + + + + + +Do you want me to grab from CVS the 3.5 version of org.eclipse.ltk.core.refactoring? +Unless you're going to work with lombok's patching of the refactor scripts, you won't need it. + + + + + + + + + + + + +Do you want me to grab from CVS the 3.5 version of org.eclipse.equinox? +Unless you're going to work on lombok.patcher's OSGi integration, you won't need this. + + + + + + + + + + + + + eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace. + + + + + + + + + eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace. + + + + + + + + + eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace. + + + + + + + + + eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace. + + + + + + + + + eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace. + + + + + + + + + + --------------------------- + + Launch target configured; it should show up in your eclipse under the debug menu as "LombokizedEclipse". + It does NOT hot-code-replace on lombok itself - you'll need to run 'ant dist' every time you want to use it. This is an unavoidable shortcoming of java agents. You can, however, breakpoint and step through your eclipse this way. + + --------------------------- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/buildScripts/deps/lombok-patcher.ant.xml b/buildScripts/deps/lombok-patcher.ant.xml new file mode 100644 index 00000000..c0dfbf77 --- /dev/null +++ b/buildScripts/deps/lombok-patcher.ant.xml @@ -0,0 +1,158 @@ + + + +This buildfile is part of projectlombok.org. It responsible for finding, downloading, and updating the lombok.patcher dependency. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + You don't have any version of lombok-patcher.jar installed. Run 'ant installDeps' to fix this. + + + + + + + + + + + + + + + + ** UPDATED: ${lombok.patcher.fileloc} + + + + + + + + + + + + + + + + + + + + + + +You don't have the lombok.patcher dependency. I can grab the lombok.patcher project form version control. If you want me to do so, I will put the project in a sibling directory next to your 'lombok' project directory. Otherwise, I can grab a copy from the internet, though it won't be as up-to-date, and may thus be insufficient to run the very latest lombok. + Pick one (first letter will do): + Skip - Skips this download. This dependency is not optional, so your lombok won't compile. + Get - Grabs the latest version of lombok.patcher from source control. + Download - Downloads the latest version from the internet, and will not be as up to date as 'get'. + + + + + + + + + + + + + +You only have the lombok.patcher dependency as a downloaded file, which won't be as cutting edge as grabbing it from version control. Do you want to grab lombok.patcher from source control? I will put the project in a sibling directory next to your 'lombok' directory. + Pick one (first letter will do): + Skip - Skips this download, and continues to rely on the occasionally updated web version. + Get - Grabs the latest version of lombok.patcher from source control. Lombok will start using this instead. + + + + + + + + + + + + + Cloning ${lombok.patcher.giturl} into ${lombok.patcher.dir} + + +Done! lombok-patcher.jar will now be resolved from this cloned repository. +You may want to import this project into your eclipse workspace as well. + + + + + + Updating existing git repository of lombok.patcher... + + + + + Downloading lombok-patcher.jar from the internet... + + + + + Updating existing lombok-patcher.jar from the internet... + + + + + + + diff --git a/buildScripts/git.ant.xml b/buildScripts/git.ant.xml new file mode 100644 index 00000000..14d3e963 --- /dev/null +++ b/buildScripts/git.ant.xml @@ -0,0 +1,73 @@ + + + Useful macrodefs for using git from ant. + + + + + + + + + + + + + + + + + + +[GIT NOT FOUND] + +You don't appear to have git installed. If you're on windows, try running this in your git shell. +Otherwise, install git. git is a free and open source version control system. +You can download it from: http://git-scm.com/ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/buildScripts/maven.ant.xml b/buildScripts/maven.ant.xml index 783303f2..ff71b718 100644 --- a/buildScripts/maven.ant.xml +++ b/buildScripts/maven.ant.xml @@ -20,8 +20,10 @@ THE SOFTWARE. --> - This buildfile is part of projectlombok.org. It is responsible for creating and maintaining -the maven repository that contains lombok's deliverables for those using maven. + +This buildfile is part of projectlombok.org. It is responsible for creating and maintaining +the maven repository that contains lombok's deliverables for those using maven. + diff --git a/buildScripts/publish.ant.xml b/buildScripts/publish.ant.xml index 6c31b42b..973318e1 100644 --- a/buildScripts/publish.ant.xml +++ b/buildScripts/publish.ant.xml @@ -20,56 +20,60 @@ THE SOFTWARE. --> - This buildfile is part of projectlombok.org. It is responsible for turning the build results -into the actual deliverable form, and uploading it to the distribution websites. - - - - - - - - - - - - - - - - - - - - - - - - #username=[your google account name without @gmail.com] -#password=[your googlecode password, is NOT your gmail password] - - - - - - - - - + +This buildfile is part of projectlombok.org. It is responsible for turning the build results +into the actual deliverable form, and uploading it to the distribution websites. + + + + + + + + + + + + + + + + + + + + + + + + + +#username=[your google account name without @gmail.com] +#password=[your googlecode password, is NOT your gmail password] + + + + + + + + + + diff --git a/buildScripts/website.ant.xml b/buildScripts/website.ant.xml index d4b0605d..3ce45032 100644 --- a/buildScripts/website.ant.xml +++ b/buildScripts/website.ant.xml @@ -22,7 +22,8 @@ This buildfile is part of projectlombok.org. It is responsible for building the website and all website-related aspects, -such as converting the changelog into HTML, and creating javadoc. +such as converting the changelog into HTML, and creating javadoc. + -- cgit