forked from projectlombok/lombok
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compile test step to Github Actions
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
set -e | ||
echo 'This will compile a selection of files in test/transform/resource/before. If the compilation works without error, lombok is working as designed.' | ||
|
||
mkdir -p out/ | ||
|
||
# list of files to iterate over | ||
FILES="UtilityClassInner.java" | ||
BASE_PATH="../../../test/transform/resource/before" | ||
LOMBOK_JAR="../../../dist/lombok.jar" | ||
|
||
# compile all files in list | ||
for f in $FILES | ||
do | ||
|
||
echo "Compiling $f" | ||
javac --processor-path $LOMBOK_JAR -cp $LOMBOK_JAR -d out/ $BASE_PATH/$f | ||
done | ||
|
||
rm -rf out/ |