Skip to content
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

Draft
wants to merge 46 commits into
base: development
Choose a base branch
from

Conversation

BalbinoOrtus
Copy link
Collaborator

No description provided.

@BalbinoOrtus BalbinoOrtus self-assigned this Sep 2, 2021
@BalbinoOrtus BalbinoOrtus changed the title compileDSL compile and jar .java ticket COMMANDBOX-748: compileDSL compile and jar .java Sep 2, 2021

setSourcePaths( getSourcePaths().map( function( p ) {
var currentPath = fileSystemutil.resolvePath( arguments.p, getProjectRoot() );
if ( directoryExists( currentPath ) ) {
Copy link
Collaborator

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.

Copy link
Collaborator Author

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


writeTempSourceFile( tempSrcFileName );

var javacCommand = 'run "#getJavaBinFolder()#javac" "@#tempSrcFileName#" -d #variables.classOutputDirectory# #variables.compileOptionsString#';
Copy link
Collaborator

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#

Copy link
Collaborator Author

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#" ?

Copy link
Collaborator

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? :)

Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants