[build] quality-of-life improvements for lombok dev on windows

On windows, Eclipse keeps annotation processors open, which means putting spiProcessor in 'build' is annoying, as you can't delete open files on windows. Fixed by moving it to dist
This commit is contained in:
Reinier Zwitserloot committed 2021-03-19 02:14:24 +01:00
1 parent 27f3917d89
commit 0c6a243c8e
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -69,7 +69,7 @@ This buildfile is part of projectlombok.org. It takes care of compiling and buil
</ivy:compile>
<mkdir dir="build/spiProcessor/META-INF/services" />
<echo file="build/spiProcessor/META-INF/services/javax.annotation.processing.Processor">lombok.spi.SpiProcessor</echo>
<jar destfile="build/spiProcessor.jar">
<jar destfile="dist/spiProcessor.jar">
<fileset dir="build/spiProcessor" />
</jar>
</target>
@@ -172,8 +172,8 @@ This buildfile is part of projectlombok.org. It takes care of compiling and buil
<classpath refid="cp.build" />
<classpath refid="cp.eclipse-oxygen" />
<classpath refid="cp.javac6" />
<classpath path="build/lombok-utils:build/lombok-utils6:build/lombok-main:build/spiProcessor.jar" />
<annotationProcessor jar="build/spiProcessor.jar" processor="lombok.spi.SpiProcessor" />
<classpath path="build/lombok-utils:build/lombok-utils6:build/lombok-main:dist/spiProcessor.jar" />
<annotationProcessor jar="dist/spiProcessor.jar" processor="lombok.spi.SpiProcessor" />
</ivy:compile>
<!-- This is really part of the eclipse agent, but references lombok, so that had to be compiled first -->
+1 -1
View File
@@ -53,7 +53,7 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede
<settings>
<url url="https://projectlombok.org/downloads/lombok.eclipse.settings" />
</settings>
<apt location="build/spiProcessor.jar" />
<apt location="dist/spiProcessor.jar" />
</ivy:eclipsegen>
</target>
+1 -1
View File
@@ -29,7 +29,7 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede
<echo>NOT IMPLEMENTED: The project should optimally be configured as a java1.6, using the rt.jar in lib/openjdk6_rt.jar as boot basis, to ensure lombok remains 1.6 compatible.</echo>
<echo>NOT IMPLEMENTED: Ability to run tests targeted at a specific jvm/javac/ecj/eclipse release; the relevant entrypoint test classes are lombok.RunBaseAndJavacTests and lombok.RunEclipseTests - you can run the eclipse tests even on intellij; an eclipse installation is not required.</echo>
<echo>NOT SURE: The annotation processor system that automatically generates the services files has been changed. This AP is now internal to the project,
the source files for it are in `src/spiProcessor`, and a build of this is now in `build/spiProcessor.jar` - you may have to manually add it, though I'm not
the source files for it are in `src/spiProcessor`, and a build of this is now in `dist/spiProcessor.jar` - you may have to manually add it, though I'm not
sure if you actually need it - the files generated by this processor are relevant only when running lombok itself, and if intellij accomplishes this by
invoking ant, all will be well.</echo>
<input>Press return to continue</input>