Skip to content

Commit 353a329

Browse files
authored
Merge pull request #110 from apache/xalan-java-mvn-refactored
Maven migration, refactored, plus maven build changes since then.
2 parents 52a74b6 + 0a50016 commit 353a329

File tree

1,480 files changed

+14035
-7950
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,480 files changed

+14035
-7950
lines changed

.classpath

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,34 +35,39 @@ jobs:
3535
java-version: 8
3636
- name: 'Build Xalan jars'
3737
run: |
38-
ant jar
38+
mvn --no-transfer-progress clean compile site verify
3939
- uses: actions/checkout@v3
4040
name: 'Checkout xalan-test'
4141
with:
4242
repository: apache/xalan-test
4343
path: xalan-test
4444
ref: master
45+
- name: 'Cheat xalan-test up to be sibling of xalan-java'
46+
run: |
47+
mv xalan-test ..; ls ..
4548
- name: 'Run xalan-test tests'
46-
working-directory: xalan-test
49+
working-directory: ../xalan-test
4750
# NOTE: "alltest" target includes conformance tests known not to run in Xalan,
4851
# as well as having dependencies on some targets which have since been edited
4952
# out. The following is our typical minimal build test as documented in README,
5053
# minus conf.xsltc since that one is currently throwing four known failures and
5154
# isn't set up to say "but that's not a regression".
52-
run: |
53-
ant jar extensions.classes smoketest apitest -Dxalan.relpath=../ -Dparserjar=../lib/endorsed/xercesImpl.jar -Dxml-apis.jar=../lib/endorsed/xml-apis.jar
5455

55-
# ant fulldist is failing: in CI
56-
# /home/runner/work/xalan-java/xalan-java/build.xml:1399: /home/runner/work/xalan-java/xalan-test does not exist.
57-
# Error replicated on my system if there is not a sibling xalan-test.
58-
# NOT replicated if sibling xalan-test directory is present
59-
# Simplest fix would be to have the above test checkout emulate the dev environment;
60-
# better would be to fix fulldist to intelligently check both locations;
61-
# best might be to adopt xalan-test back into the xalan repository, if it's no longer being used elsewhere.
62-
- name: 'Cheat xalan-test up to be sibling of xalan-java'
63-
run: |
64-
mv xalan-test ..; ls ..
65-
- id: build_artifacts
56+
# NOTE: Adjustments made for mvn build leaving things in a slightly different
57+
# place than ant build did (and recreating /lib).
6658
run: |
67-
ant fulldist
59+
ls; ant -debug jar extensions.classes smoketest apitest -Dxalan.relpath=../xalan-java -Dparserjar=../xalan-java/lib/xercesImpl-2.12.2.jar -Dxml-apis.jar=../xalan-java/lib/xml-apis-1.4.01.jar
6860
61+
# Build distribution artifacts: Used to pull xalan-test back down as child and
62+
# run fulldist:
63+
# run: |
64+
# ant fulldist
65+
# fulldist isn't currently a separate target in the mvn build process
66+
# A near-equivalent is being performed every time to build the .tar.gz
67+
# and .zip distribution files.
68+
#
69+
# BUT NOTE that the binary distro has traditionally included
70+
# xalan-test as a subdirectory; maven build doesn't yet pull that in.
71+
# Discussion is in progress about whether it is (a) necessary, (b) a good
72+
# idea.
73+
# TODO: REVIEW.

.gitignore

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
1-
/bin/
2-
/build/
3-
/classes/
4-
/.idea/
1+
# Maven output
2+
target/
3+
**/dependency-reduced-pom.xml
4+
5+
# In Maven, dependencies are downloaded during build;
6+
# we don't want to check them in
7+
/tools/
8+
9+
# Xalan "Ant emulation" directories for xalan-test and distribution,
10+
# created by Maven build.
11+
# (xalan-test referenced dependencies from xalan-java; distro may be
12+
# publishing from lib/ though I hope not.)
13+
build/
14+
lib/
15+
16+
# Eclipse configuration
17+
.settings/
18+
.project
19+
.classpath
20+
21+
# IntelliJ IDEA
22+
.idea/
523
*.iml
6-
.DS_Store
724

8-
# We download the dependencies if they are missing
9-
/lib/
10-
/tools/java_cup.jar
11-
/tmp/
25+
# MacOS Finder
26+
.DS_Store
1227

13-
# Generated sources
28+
# XPath parser generated during compilation
1429
/src/org/apache/xalan/processor/XSLProcessorVersion.java
1530
/src/org/apache/xalan/xsltc/compiler/XPathLexer.java
1631
/src/org/apache/xalan/xsltc/compiler/XPathParser.java
1732
/src/org/apache/xalan/xsltc/compiler/sym.java
18-
/xdocs/sources/xalan/DONE
19-
/xdocs/sources/xalan/XSLTCDONE
20-
21-
# The following are unpacked from zipfile
22-
# NOTE: Might be simpler to just check 'em in unzipped.
23-
/xdocs/style/graphics/
24-
/xdocs/style/loader.xml
25-
/xdocs/style/resources/
26-
/xdocs/style/stylesheets/any2header.xsl
27-
/xdocs/style/stylesheets/any2project.xsl
28-
/xdocs/style/stylesheets/book2group.xsl
29-
/xdocs/style/stylesheets/book2project.xsl
30-
/xdocs/style/stylesheets/changes2document.xsl
31-
/xdocs/style/stylesheets/context2footer.xsl
32-
/xdocs/style/stylesheets/context2label.xsl
33-
/xdocs/style/stylesheets/directory2project.xsl
34-
/xdocs/style/stylesheets/document2html.xsl
35-
/xdocs/style/stylesheets/faqs2document.xsl
36-
/xdocs/style/stylesheets/group2document.xsl
33+
34+
# Stylebook processing progress flags.
35+
/stylebook/sources/xalan/DONE
36+
/stylebook/sources/xalan/XSLTCDONE
37+
38+
# Various temporary/work directories used by other tools
39+
/bin/
40+
/classes/
41+
/tmp/

.project

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)