Skip to content

Commit

Permalink
Update asm from 9.4 to 9.5
Browse files Browse the repository at this point in the history
- Use the lib from the platform directly instead of downloading it again
  for 'java/maven/build.xml'
- Remove now unnecessary entry in ignored-overlaps file
  • Loading branch information
pepness committed Apr 3, 2023
1 parent 8f943c2 commit ea4e570
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 70 deletions.
4 changes: 2 additions & 2 deletions harness/apisupport.harness/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
<pathelement location="${cluster}/tasks.jar"></pathelement>
</classpath>
</taskdef>
<echo file="build/binaries-list">B4E0E2D2E023AA317B7CFCFC916377EA348E07D1 org.ow2.asm:asm:9.4</echo>
<echo file="build/binaries-list">DC6EA1875F4D64FBC85E1691C95B96A3D8569C90 org.ow2.asm:asm:9.5</echo>
<TestDownload>
<manifest dir="build">
<include name="binaries-list"/>
</manifest>
</TestDownload>
<delete file="build/asm-9.4.jar"/>
<delete file="build/asm-9.5.jar"/>
</target>

<target name="compile-jnlp-launcher" depends="init,compile">
Expand Down
2 changes: 1 addition & 1 deletion java/lib.jshell.agent/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ javac.compilerargs=-Xlint -Xlint:-serial
extra.module.files=modules/ext/nb-custom-jshell-probe.jar,modules/ext/nb-mod-jshell-probe.jar
jnlp.indirect.jars=modules/ext/nb-custom-jshell-probe.jar,modules/ext/nb-mod-jshell-probe.jar

agentsrc.asm.cp=${libs.asm.dir}/core/asm-9.4.jar
agentsrc.asm.cp=${libs.asm.dir}/core/asm-9.5.jar
agentsrc.jshell.cp=${nb_all}/java/libs.jshell.compile/external/jshell-9.jar
4 changes: 2 additions & 2 deletions java/maven/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
<!-- we use jarjar to repackage simple json, to avoid clashes with 3rd party maven plugins possibly including it in their dependencies -->
<taskdef name="jarjar" classname="org.pantsbuild.jarjar.JarJarTask" loaderref="lib.path.loader">
<classpath>
<pathelement location="./external/asm-9.4.jar"/>
<pathelement location="./external/asm-commons-9.4.jar"/>
<pathelement location="${libs.asm.dir}/core/asm-9.5.jar"/>
<pathelement location="${libs.asm.dir}/core/asm-commons-9.5.jar"/>
<pathelement location="./external/jarjar-1.7.2.jar"/>
</classpath>
</taskdef>
Expand Down
42 changes: 0 additions & 42 deletions java/maven/external/asm-9.4-license.txt

This file was deleted.

2 changes: 0 additions & 2 deletions java/maven/external/binaries-list
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@
# specific language governing permissions and limitations
# under the License.
8E258F158B4572D40598D7F4793CFBFE84A7CC70 org.pantsbuild:jarjar:1.7.2
B4E0E2D2E023AA317B7CFCFC916377EA348E07D1 org.ow2.asm:asm:9.4
8FC2810DDBCBBEC0A8BBCCB3F8EDA58321839912 org.ow2.asm:asm-commons:9.4
E48292EAE5E14EC44978AA53DEBB1AF7DDD6DF93 org.sonatype.aether:aether-api:1.13.1
3 changes: 0 additions & 3 deletions nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-overlaps
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ enterprise/javaee.api/external/javax.annotation-api-1.2.jar java/maven.indexer/e
enterprise/javaee7.api/external/javax.annotation-api-1.2.jar enterprise/javaee8.api/external/javax.annotation-api-1.2.jar
enterprise/javaee8.api/external/javax.annotation-api-1.3.2.jar java/maven.embedder/external/apache-maven-3.9.1-bin.zip

java/maven/external/asm-9.4.jar platform/libs.asm/external/asm-9.4.jar
java/maven/external/asm-commons-9.4.jar platform/libs.asm/external/asm-commons-9.4.jar

# jaxb-api-osgi is used by multiple modules.
enterprise/javaee.api/external/jaxb-api-osgi-2.2.7.jar enterprise/javaee7.api/external/jaxb-api-osgi-2.2.7.jar

Expand Down
6 changes: 3 additions & 3 deletions nbbuild/templates/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
<tstamp>
<format property="module.build.started.time" pattern="yyyy-MM-dd'T'HH:mm:ss.SSSZ"/>
</tstamp>
<condition property="asm.jar" value="${nbplatform.active.dir}/platform/core/asm-9.4.jar">
<available file="${nbplatform.active.dir}/platform/core/asm-9.4.jar"/>
<condition property="asm.jar" value="${nbplatform.active.dir}/platform/core/asm-9.5.jar">
<available file="${nbplatform.active.dir}/platform/core/asm-9.5.jar"/>
</condition>
<property name="asm.jar" location="${platform/libs.asm.dir}/core/asm-9.4.jar"/>
<property name="asm.jar" location="${platform/libs.asm.dir}/core/asm-9.5.jar"/>
<property name="tsaurl" value=""/>
<property name="tsacert" value=""/>
</target>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: OW2 ASM
Version: 9.4
Files: asm-tree-9.4.jar asm-commons-9.4.jar asm-9.4.jar
Version: 9.5
Files: asm-tree-9.5.jar asm-commons-9.5.jar asm-9.5.jar
License: BSD-INRIA
Origin: OW2 Consortium
URL: https://repository.ow2.org/nexus/content/repositories/releases/org/ow2/asm/
Expand Down
6 changes: 3 additions & 3 deletions platform/libs.asm/external/binaries-list
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
B4E0E2D2E023AA317B7CFCFC916377EA348E07D1 org.ow2.asm:asm:9.4
A99175A17D7FDC18CBCBD0E8EA6A5D276844190A org.ow2.asm:asm-tree:9.4
8FC2810DDBCBBEC0A8BBCCB3F8EDA58321839912 org.ow2.asm:asm-commons:9.4
DC6EA1875F4D64FBC85E1691C95B96A3D8569C90 org.ow2.asm:asm:9.5
FD33C8B6373ABAA675BE407082FDFDA35021254A org.ow2.asm:asm-tree:9.5
19AB5B5800A3910D30D3A3E64FDB00FD0CB42DE0 org.ow2.asm:asm-commons:9.5
8 changes: 4 additions & 4 deletions platform/libs.asm/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ javac.compilerargs=-Xlint -Xlint:-serial
javac.source=1.8
module.jar.dir=core

release.external/asm-9.4.jar=core/asm-9.4.jar
release.external/asm-tree-9.4.jar=core/asm-tree-9.4.jar
release.external/asm-commons-9.4.jar=core/asm-commons-9.4.jar
license.file=../external/asm-9.4-license.txt
release.external/asm-9.5.jar=core/asm-9.5.jar
release.external/asm-tree-9.5.jar=core/asm-tree-9.5.jar
release.external/asm-commons-9.5.jar=core/asm-commons-9.5.jar
license.file=../external/asm-9.5-license.txt
12 changes: 6 additions & 6 deletions platform/libs.asm/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
<subpackages>org</subpackages>
</public-packages>
<class-path-extension>
<runtime-relative-path>asm-9.4.jar</runtime-relative-path>
<binary-origin>external/asm-9.4.jar</binary-origin>
<runtime-relative-path>asm-9.5.jar</runtime-relative-path>
<binary-origin>external/asm-9.5.jar</binary-origin>
</class-path-extension>
<class-path-extension>
<runtime-relative-path>asm-tree-9.4.jar</runtime-relative-path>
<binary-origin>external/asm-tree-9.4.jar</binary-origin>
<runtime-relative-path>asm-tree-9.5.jar</runtime-relative-path>
<binary-origin>external/asm-tree-9.5.jar</binary-origin>
</class-path-extension>
<class-path-extension>
<runtime-relative-path>asm-commons-9.4.jar</runtime-relative-path>
<binary-origin>external/asm-commons-9.4.jar</binary-origin>
<runtime-relative-path>asm-commons-9.5.jar</runtime-relative-path>
<binary-origin>external/asm-commons-9.5.jar</binary-origin>
</class-path-extension>
</data>
</configuration>
Expand Down

0 comments on commit ea4e570

Please sign in to comment.