You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by GitBox <gi...@apache.org> on 2022/07/25 07:33:29 UTC

[GitHub] [xalan-java] vlsi opened a new pull request, #2: Improve build: add CI, download jars from Central

vlsi opened a new pull request, #2:
URL: https://github.com/apache/xalan-java/pull/2

   This PR fixes build configuration, and removes many jars from the source repository and from the source distribution.
   
   Here are the files that are still present:
   * tools/stylebook-1.0-b3_xalan-2.jar
   * tools/xalan2jdoc.jar
   * tools/xalan2jtaglet.jar
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: [GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by Joseph Kesselman <ke...@alum.mit.edu>.
Apologies. This should indeed be on dev or in another issue.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!
________________________________
From: vlsi (via GitHub) <gi...@apache.org>
Sent: Wednesday, June 14, 2023 11:39:12 AM
To: dev@xalan.apache.org <de...@xalan.apache.org>
Subject: [GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central


vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1591502198

   >Have we tested with the newer java_cup release?

   Frankly speaking, I do not find the question relevant to this PR.

   Whenever possible, I tried to **avoid** doing unnecessary modifications, so I selected the versions that were the same or close to the previously used versions.

   I believe, the existing java_cup was 11b, and I download 11b.
   For java_cup, that is **the latest* versions.

   What do you want to know by asking "tested with the newer java_cup release"?

   There's no "newer java_cup" release.

   ----

   >and it's too messy to apply programmatically do a downloaded copy?

   Would you please create a JIRA ticket for that and discuss it there?
   I do not see how the question is related to this PR.



--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196677193

   In this case I can replace "retrieval the offical JLex" with "download from https://github.com/apache/xalan-java/blob/xalan-j_2_7_1_maint/tools/JLex.jar", however, that is really moot license-wise.
   
   I think the proper resolution is to embed JLex sources into xalan-java source code, however, I'm inclined it should better be in another PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196656754

   >I'd say that, the pr change, mentioned as, "Remove -static option from JLex call" shouldn't be done. This has not been, issue with XalanJ builds earlier.
   
   Where did you get JLex.jar then?
   The one from https://www.cs.princeton.edu/~appel/modern/java/JLex/ does not support `-static` option.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1194158927

   >All of this could be done in this PR.
   
   Replacing the embedded dependencies with external ones is not backward compatible change, so I would refrain from that for the next release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: [PR] Improve build: add CI, run xalan-test in CI, download jars from Central [xalan-java]

Posted by "jkesselm (via GitHub)" <gi...@apache.org>.
jkesselm commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1834544303

   (Closing. Your more recent CI work is in other PRs, and I think the downloading-dependencies thing is going to be addressed by Maven cutover before too much longer so the Ant-based version, I *think*, is more distraction than useful. If you really feel it's needed as stopgap, please open a PR for that change separately and we can discuss.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] jkesselm commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by "jkesselm (via GitHub)" <gi...@apache.org>.
jkesselm commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1590208504

   OK, I'm a bit confused.
   
   For java_cup.jar, you _aren't_ downloading it from Maven (even though it's listed as a Maven project); you're explicitly downloading from java_cup's page at Technische Universität München.
   
   I'm not following why the same basic solution -- but download and build rather than download and untar -- wouldn't be the right answer for JLex, fetching https://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.6/Main.java or whichever other specific release is desired.
   
   Yes, there is risk that the JLex page Goes Away at some point.  But it appears to be equivalent to the risk for java_cup.
   
   What am I missing?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1194034293

   > however the way it is done in this PR would be problematic for modular JDKs.
   
   @carlosame , I did not intend to fix CVEs in this PR. I just wanted to add CI so all the further modifications could be tested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196803071

   I've created https://issues.apache.org/jira/browse/XALANJ-2635 regarding `JLex.jar` and `XPathLexer.java`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196680279

   An alternative option is to comment out the call to "jlex", and postpone the decision till xpath.lex modification would be needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: [PR] Improve build: add CI, run xalan-test in CI, download jars from Central [xalan-java]

Posted by "jkesselm (via GitHub)" <gi...@apache.org>.
jkesselm commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1764752442

   This is resolved in the the migration from Ant to Maven, now in progress. 
   
   Since JLex wasn't available in Maven Central, I went with JFlex instead, modifying the grammar to perform the lookahead via the regular expressions rather than by digging into the lex system's internal variables. Both necessary and cleaner, and quite possibly more performant though I haven't attempted to test that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: [PR] Improve build: add CI, run xalan-test in CI, download jars from Central [xalan-java]

Posted by "jkesselm (via GitHub)" <gi...@apache.org>.
jkesselm closed pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central
URL: https://github.com/apache/xalan-java/pull/2


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1194041762

   @mukulga , would you please clarify which changes you suggest skipping?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] jkesselm commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by "jkesselm (via GitHub)" <gi...@apache.org>.
jkesselm commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1591471554

   Hm. Digressing, and apologies for playing catch-up here if the answer is "tried, can't", but... Have we tested with the newer java_cup release? Unless we have a specific reason for staying with a back level version, the usual Maven philosophy would be that we at least try to stay with current code, updating our own code to track it if necessary... "At least version X" is preferred to exact version unless there's a known issue.
   
   The same would apply to JLex; if there's a way to avoid needing a copy which is both backdated and modified, we should consider that.
   
   I presume we know what the modification was, it's not just that we have previous version of JLex (it doesn't announce version number), and it's too messy to apply programmatically do a downloaded copy?
   
   
   
   --
      /_  Joe Kesselman (he/him/his)
   -/ _) My Alexa skill for New Music/New Sounds fans:
      /   https://www.amazon.com/dp/B09WJ3H657/
   
   () Plaintext Ribbon Campaign
   /\ Stamp out HTML mail!
   ________________________________
   From: Vladimir Sitnikov ***@***.***>
   Sent: Wednesday, June 14, 2023 1:53:40 AM
   To: apache/xalan-java ***@***.***>
   Cc: Joe Kesselman ***@***.***>; Comment ***@***.***>
   Subject: Re: [apache/xalan-java] Improve build: add CI, run xalan-test in CI, download jars from Central (PR #2)
   
   
   wouldn't be the right answer for JLex, fetching https://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.6/Main.java or whichever other specific release is desired.
   
   Please read #2 (comment)<https://github.com/apache/xalan-java/pull/2#issuecomment-1196656754>
   Apparently, JLex.jar within xalan-java is modified, so there's no way to fetch a pre-built jar.
   I would suggest integrating JLex in a source form, and building it during xalan build, however, it would be too many changes for the current PR which focuses on adding CI.
   
   But it appears to be equivalent to the risk for java_cup.
   
   xalan-java uses java-cup version 11b or something like that.
   That version is not available on Central, so the only way to download it is to fetch from the project webpage and/or ask the maintainers to publish on Central.
   
   —
   Reply to this email directly, view it on GitHub<https://github.com/apache/xalan-java/pull/2#issuecomment-1590515508>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A7OJ6WYZM27WJ6D5ABLQXTLXLFGWJANCNFSM54RHYSIA>.
   You are receiving this because you commented.Message ID: ***@***.***>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: [PR] Improve build: add CI, run xalan-test in CI, download jars from Central [xalan-java]

Posted by "jkesselm (via GitHub)" <gi...@apache.org>.
jkesselm commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1766928939

   The downloads aspects of this will be subsumed under the migration to Maven-based builds.
   
   Running CI looks useful. However, note that we are considering moving xalan-test into the test directories of xalan-java, so its invocation would change.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1194111429

   What is the need for bootclasspath cusomization?
   
   As far as I remember, bootclasspath removal was needed when I tried building Xalan with Java 11.
   On the other hand, if we use Java 1.8 for the build, then bootclasspath could still be there: https://github.com/vlsi/xalan-java/actions/runs/2732942617 (it is the same change where I excluded `Remove bootclasspath customization` commit)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] carlosame commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
carlosame commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1194140628

   > @carlosame , I did not intend to fix CVEs in this PR. I just wanted to add CI so all the further modifications could be tested.
   
   To "fix" the CVE, all you need to do is to remove the BCEL packages from the jar, and then list BCEL as a dependency. Now the CVE belongs to somebody else.
   
   And to be friendly to modular JDKs, you have to do the same for the rest of the foreign packages that are currently shipped with Xalan. All of this could be done in this PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1590515508

   >wouldn't be the right answer for JLex, fetching https://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.6/Main.java or whichever other specific release is desired.
   
   Please read https://github.com/apache/xalan-java/pull/2#issuecomment-1196656754
   Apparently, JLex.jar within xalan-java is modified, so there's no way to fetch a pre-built jar.
   I would suggest integrating JLex in a source form, and building it during xalan build, however, it would be too many changes for the current PR which focuses on adding CI.
   
   >But it appears to be equivalent to the risk for java_cup.
   
   xalan-java uses java-cup version 11b or something like that.
   That version is not available on Central, so the only way to download it is to fetch from the project webpage and/or ask the maintainers to publish on Central.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1194036112

   >I'm the maintainer of [EchoXSL](https://github.com/css4j/echoxsl)
   
   It was tempting to rip off build.xml and replace it with Gradle, yet it sounds like a "too much" change for fixing a CVE :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196542919

   I reverted bootclasspath-related changes for now since it is not needed for Java 8


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1590008892

   > I'd be happier if we could divide these and address them separately.
   
   Thank you for the review, however, I truly do not understand if you want an action from me or not.
   
   I believe the commits are self-contained, so feel free to commit all of them or some of them to the main branch.
   
   > Last I checked, it wasn't clear who actually owns/maintains JLex
   
   Please check https://issues.apache.org/jira/browse/XALANJ-2635 description. It includes the link to the official maintainer: https://www.cs.princeton.edu/~appel/modern/java/JLex/
   
   I believe JLex is not connected with Sun Microsystems, so "Good luck finding someone at Sun who remembers where they got JLex from" comment does not apply.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: [PR] Improve build: add CI, run xalan-test in CI, download jars from Central [xalan-java]

Posted by "jkesselm (via GitHub)" <gi...@apache.org>.
jkesselm commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1828234843

   Status check: This appears to be outdated, and to overlap with other work in progress.  
   
   I believe we have already dealt with CI as a separate change..
   
   I am dealing with bootclasspath. This was needed in earlier Javas because Sun insisted on shipping versions of of xerces and xalan in the standard libraries as org.apache.* (without repackaging them), preventing users from running the new code unless bootclasspath was prefixed or the -endorsedlib mechanism was used (which is essentially a more official version of the same thing). Since the introduction of JAXP and TrAX (circa Java 1.5-1.6), the java libraries have been changed to ship with the Apache code moved to com.sun.org.apache.*, removing that conflict. There may still be users who have the old workarounds in place so we should tolerate running in that mode (see recent discussion of Version)... but we don't need to use it ourselves.
   
   The Maven build prototype fixes most or all of the binary dependencies by downloading from Central. I expect to merge that soon.
   
   (Best practice is one issue per PR, though sometimes that issue unavoidably subsumes multiple tightly internlinked sub-issues, as is the case with the Maven migration uber-PR. Separation lets us discuss, refine, and approve them individually.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] mukulga commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
mukulga commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1194101692

   > @mukulga , would you please clarify which changes you suggest skipping?
   
   why would, changes specified as "Remove bootclasspath customization" within the PR for build.xml needed? May be, another XalanJ committer can suggest as well, on this point.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196669222

   @mukulga , the ASF policy forbids including binary (compiled, non-text) code in the source artifacts.
   
   https://www.apache.org/legal/release-policy.html#source-packages
   
   > Every ASF release MUST contain one or more source packages, which MUST be sufficient for a user to build and test the release provided they have access to the appropriate platform and tools. A source **release SHOULD not contain compiled code.**
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196690926

   I commented the call to `JLex.jar`, so `JLex.jar` is kept intact in Git repository, however, it is not included into `-src.zip`, and it is not used during the build.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] jkesselm commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by "jkesselm (via GitHub)" <gi...@apache.org>.
jkesselm commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1589896109

   This seems to be mixing a number of issues -- the JLex question, the more general question of where the dependency jarfiles should live and how they are fetched, and running continuous integration. I'd be happier if we could divide these and address them separately.
   
   -----
   
   XPathLexer appears to be generated from xpath.lex using JLex, according to the build.xml file. See the property ${generated.xpathlexer" and its usage. So we *DO* have checked-in source for that in the Xalan-Java project.
   
   The problem is that we don't have either source, or a source, for JLex.
   
   Last I checked, it wasn't clear who actually owns/maintains JLex. If anyone. The proper solution would be to find a supported (or at least clearly open-sourced) Java lex implementation compatible with any JLex quirks (and/or to rework the input to work with the new lex) and swap it in. That's a somewhat scary proposal, deserving its own work item.
   
   Note that JLex and XPathLexer are part of the xsltc "compiled xslt processor" code, originally contributed to Apache by Sun Microsystems. I did a lot of the work to reconcile that code with Xalan and glue them together as a single system... but I didn't go very deeply into it at the time, just enough to sew the  monster together. A significant portion of Sun's code was accepted unexamined before I even started that process, which is how JLex got brought in. Yes, these days Apache would insist on knowing the source of all the pieces, but things were a bit looser then; as long as Sun took responsibility for the code donation, we trusted that they had either written it themselves or sourced it ethically.
   
   Good luck finding someone at Sun who remembers where they got JLex from, especially since they pretty much vanished from the Xalan project after the integration.
   
   I think we just have to accept this as grandfathered code until/unless someone is willing to tackle either tracking it down (and dealing with any changes since we got our copy that might affect our use of it) or replacing it. Either way, I'd want to see that tested to death before committing to it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] jkesselm commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by "jkesselm (via GitHub)" <gi...@apache.org>.
jkesselm commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1590105567

   Re XALANJ-2635: Assuming that *is* the same JLex we're using, which I haven't verified, the "official maintainer" hasn't touched that page in two decades. I can try pinging them.... Copying the source for this tool locally is theoretically permitted by its license, but since it isn't one of the "standard" opensource licenses we might need an official OK.
   
   Lemme take a longer look at the rest of this.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196672428

   @mukulga , please check https://lists.apache.org/thread/otx07h6vbjrsqd9r9sqpcpjscvjwtmfc
   
   > Roy, 2012-03-27: Please point those packages out to me and I will ask Joe to give me root
   > access again so that I can go through and personally delete them from
   > our dist directories. Seriously. I am so tired of having to send these
   > emails, write the documentation, and then watch Java projects to do the
   > wrong things again and again. It is time for the sledgehammer.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] mukulga commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
mukulga commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196663469

   > Where did you get JLex.jar then? The one from https://www.cs.princeton.edu/~appel/modern/java/JLex/ does not support `-static` option.
   
   I could see, jlex jar available at https://github.com/apache/xalan-java/tree/xalan-j_2_7_1_maint/tools. I guess, we should be using this version for the next XalanJ release, unless there's a known jlex issue with current XalanJ codebase.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1196707452

   By the way, I would say XPathLexer violates that binary rule as well.
   This code looks pretty much like an unreadable compiled code to me: https://github.com/apache/xalan-java/blob/222095d55ac8352fd08f8fa23869fcd58660cea8/src/org/apache/xalan/xsltc/compiler/XPathLexer.java#L566-L598


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] carlosame commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by GitBox <gi...@apache.org>.
carlosame commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1194029452

   Hello,
   
   I'm the maintainer of [EchoXSL](https://github.com/css4j/echoxsl), a recent fork of Apache Xalan-J. I'm happy that the Xalan Project wants to produce an additional release with a fix for CVE-2022-34169, however the way it is done in this PR would be problematic for modular JDKs.
   
   As explained in css4j/echoxsl#2, the vulnerability belongs in fact to Apache BCEL, and Xalan is vulnerable because it bundles an old version of it in the jar (together with java-cup etc). However other software do also depend on BCEL or java-cup, and in modular projects this would lead to a [split packages](https://www.logicbig.com/tutorials/core-java-tutorial/modules/split-packages.html) problem. Moreover if you just download the vulnerable BCEL jar file and add its packages, Xalan would still be vulnerable.
   
   My suggestion would be to fix the vulnerability in the BCEL project, and then set it up as a dependency in Xalan. This is the approach that EchoXSL followed and works fine. The resulting Maven POM should include something like this in the `dependencies` section:
   
   ```xml
       <dependency>
         <groupId>org.apache.bcel</groupId>
         <artifactId>bcel</artifactId>
         <version>6.5.1</version>
         <scope>compile</scope>
       </dependency>
   ```
   
   Feel free to reuse the Gradle build in EchoXSL if it is of any help.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


[GitHub] [xalan-java] vlsi commented on pull request #2: Improve build: add CI, run xalan-test in CI, download jars from Central

Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on PR #2:
URL: https://github.com/apache/xalan-java/pull/2#issuecomment-1591502198

   >Have we tested with the newer java_cup release? 
   
   Frankly speaking, I do not find the question relevant to this PR.
   
   Whenever possible, I tried to **avoid** doing unnecessary modifications, so I selected the versions that were the same or close to the previously used versions.
   
   I believe, the existing java_cup was 11b, and I download 11b.
   For java_cup, that is **the latest* versions.
   
   What do you want to know by asking "tested with the newer java_cup release"?
   
   There's no "newer java_cup" release.
   
   ----
   
   >and it's too messy to apply programmatically do a downloaded copy?
   
   Would you please create a JIRA ticket for that and discuss it there?
   I do not see how the question is related to this PR.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org