-
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.
Move the joda-time library down into the Xalan tool bundle. Centralis…
…e and generalise classpath generation for access to Xalan, particularly for Perl scripts.
- Loading branch information
Showing
11 changed files
with
68 additions
and
11 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
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,38 @@ | ||
| #!/usr/bin/perl -w | ||
|
|
||
| # | ||
| # Simplified access to the Xalan XSLT processor. | ||
| # | ||
|
|
||
| # | ||
| # xalanCall | ||
| # | ||
| # Provides the stem of a "system" call string to access Xalan with the | ||
| # required extensions. | ||
| # | ||
| sub xalanCall | ||
| { | ||
| my $xalanRoot = "../tools/xalan"; | ||
|
|
||
| my $res = "java"; | ||
|
|
||
| # Endorsed Xalan and Xerces | ||
| $res .= " -Djava.endorsed.dirs=$xalanRoot/endorsed"; | ||
|
|
||
| # Classpath | ||
| my $classpath = '../bin'; | ||
| while (glob "$xalanRoot/lib/*") { | ||
| $classpath .= ':' unless $classpath eq ''; | ||
| $classpath .= $_; | ||
| } | ||
|
|
||
| $res .= " -cp $classpath"; | ||
|
|
||
| # Class to invoke | ||
| $res .= " org.apache.xalan.xslt.Process"; | ||
| $res; | ||
| } | ||
|
|
||
| #print ">>>" . xalanCall . "<<<\n"; | ||
|
|
||
| 1; |
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
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
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
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
Binary file not shown.