-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ticket COMMANDBOX-748: compileDSL compile and jar .java #298
base: development
Are you sure you want to change the base?
Conversation
src/cfml/system/util/CompileDSL.cfc
Outdated
|
||
setSourcePaths( getSourcePaths().map( function( p ) { | ||
var currentPath = fileSystemutil.resolvePath( arguments.p, getProjectRoot() ); | ||
if ( directoryExists( currentPath ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have the notes on how I had said to make this work? It wasn't what you have here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bdw429s dk if this is more or less what we talked: use only file globber on fromsource
check if its a folder or a file
if its a file process if not leave it alone
*.java non recursive
if its a folder then add **.java
**.java recursive
globber with filter out folders, to get only files
src/cfml/system/util/CompileDSL.cfc
Outdated
|
||
writeTempSourceFile( tempSrcFileName ); | ||
|
||
var javacCommand = 'run "#getJavaBinFolder()#javac" "@#tempSrcFileName#" -d #variables.classOutputDirectory# #variables.compileOptionsString#'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to account for quotes in #variables.classOutputDirectory#
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bdw429s do you mean "#variables.classOutputDirectory#" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You tell me. How do you handle a file path argument with spaces in it at the command line? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, when it has spaces in the path argument using "path" is the way to go. ok i will add them
20588a0
to
1177b0e
Compare
f7cb843
to
8f7fd9b
Compare
1ae8d30
to
100262e
Compare
e3a5109
to
7670a6d
Compare
updating the jar with the resources needed
…ns/commandbox into dev/commandbox-748
No description provided.