Nothing Special   »   [go: up one dir, main page]

Skip to content

Commit

Permalink
Updated to latest bld snapshot.
Browse files Browse the repository at this point in the history
Workaround for IDEA being confused about certain source jars when interpreting project as module.
  • Loading branch information
gbevin committed Aug 28, 2024
1 parent 3aa5b26 commit 30fd2a4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .idea/libraries/compile.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/libraries/runtime.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .idea/libraries/test.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified lib/bld/bld-wrapper.jar
Binary file not shown.
14 changes: 11 additions & 3 deletions src/bld/java/rife/Rife2Build.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public Rife2Build()
name = "RIFE2";
version = VersionNumber.parse(FileUtils.readString(new File(srcMainResourcesDirectory(), "RIFE_VERSION")));

var imagej_version = version("1.54h");
var jetty_version = version(12,0,11);
var jsoup_version = version(1,18,1);
var imagej_version = version("1.54j");
var jetty_version = version(12,0,12);
var jsoup_version = version(1,18,1);
var tomcat_version = version(10,1,26);

scope(provided)
Expand Down Expand Up @@ -162,6 +162,7 @@ public void download()
throws Exception {
super.download();
sanitizeTomcatEmbedCore();
removeSourceJarsThatConfuseIntellijIDEA();
}

private void sanitizeTomcatEmbedCore()
Expand Down Expand Up @@ -198,6 +199,13 @@ private void sanitizeTomcatEmbedCore()
}
}

private void removeSourceJarsThatConfuseIntellijIDEA() {
for (var jar : FileUtils.getFileList(libProvidedModulesDirectory(), Pattern.compile("ij-.*-sources\\.jar|tomcat-embed-core.*-sources\\.jar"), null)) {
System.out.println("Removing " + libProvidedModulesDirectory() + "/" + jar + "...");
new File(libProvidedModulesDirectory(), jar).delete();
}
}

final JarOperation jarAgentOperation = new JarOperation();
@BuildCommand(value = "jar-agent", summary = "Creates the agent jar archive")
public void jarAgent()
Expand Down

0 comments on commit 30fd2a4

Please sign in to comment.