Skip to content

Commit

Permalink
Update setup.cfm
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 24, 2024
1 parent df20a3a commit 9b1656d
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions custom/jar-conflict/setup.cfm
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<cfscript>
files = [
"https://repo1.maven.org/maven2/org/apache/poi/poi-ooxml/5.3.0/poi-ooxml-5.3.0.jar",
"https://repo1.maven.org/maven2/org/apache/poi/poi/5.3.0/poi-5.3.0.jar"
];
lex= "https://ext.lucee.org/poi-extension-1.0.0.6-BETA.lex";
dir = getDirectoryFromPath(getCurrentTemplatePath()) & "poi-ext";
directoryCreate( dir );
/*
for ( fileUrl in files ){
http url=fileUrl path=dir file=ListLast( fileUrl,"/ ");
}
*/
http url=lex path=getTempDirectory() file="poi.lex";
if (true){
// use jars from maven
files = [
"https://repo1.maven.org/maven2/org/apache/poi/poi-ooxml/5.3.0/poi-ooxml-5.3.0.jar",
"https://repo1.maven.org/maven2/org/apache/poi/poi/5.3.0/poi-5.3.0.jar"
];
extract( "zip", getTempDirectory() & "poi.lex", dir );
for ( fileUrl in files ){
http url=fileUrl path=dir file=ListLast( fileUrl,"/ ");
}
} else {
// use lucee poi jars from the poi extension
lex= "https://ext.lucee.org/poi-extension-1.0.0.6-BETA.lex";
http url=lex path=getTempDirectory() file="poi.lex";
extract( "zip", getTempDirectory() & "poi.lex", dir );
}
files = directoryList( dir, true );
systemOutput( files );
Expand Down

0 comments on commit 9b1656d

Please sign in to comment.