-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/mismatch/JBake into args4j-cli
- Loading branch information
Showing
7 changed files
with
138 additions
and
37 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
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,32 @@ | ||
package org.jbake.launcher; | ||
|
||
import java.io.File; | ||
|
||
import org.kohsuke.args4j.Argument; | ||
import org.kohsuke.args4j.Option; | ||
|
||
class LaunchOptions { | ||
@Argument(index = 0, usage = "source of your blog posts (with templates and assets)", metaVar = "source_folder") | ||
private File source = new File("."); | ||
|
||
@Argument(index = 1, usage = "destination folder for baked artifacts", metaVar = "destination_folder") | ||
private File destination = null; | ||
|
||
@Option(name = "-h", aliases = {"--help"}, usage="prints this message") | ||
private boolean isHelpNeeded; | ||
|
||
|
||
LaunchOptions() {} | ||
|
||
File getSource() { | ||
return source; | ||
} | ||
|
||
File getDestination() { | ||
return destination; | ||
} | ||
|
||
boolean isHelpNeeded() { | ||
return isHelpNeeded; | ||
} | ||
} |
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