input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void init scp config string parent url this scpconf feature new scpconf feature this parent url | this method must be called if configuration with properties files from a |
public string get exe jar name return get exe jar tag get version jar | the complete name of the executable jar file as deployed on google code |
public string get jar name return get jar tag get version jar | the complete name of the maximum repo dependencies jar file as deployed on |
public string get exe download url return get download ur get exe jar name | the url for downloading the executable jar from googlecode |
public void create archive string name project layout layout parent get project get layout current entry get entry name get archive entry current assemble task current entry create assemble task layout get classes dir arg runnable classes archive config current entry get config if config null config run this current assemble task execute boolean is classpath lib get entry name is classpath lib if is classpath lib file utils copy file to directory current entry get artifact layout get lib dir | creates the jar for the given name under |
private void start project main vm string args parent get instruction chain create args and remove false start vm main class args main memory get start vm config | starts a forked vm to the project main |
public void init executable jar string main class string builder class path new string builder string lib files parent get layout get lib dir list list string merge archives get current entry get merge archives for string lib file lib files boolean is classes jar parent is classes jar lib file boolean is merge archive merge archives contains lib file if is classes jar is merge archive class path append lib file class path append get current assemble task init manifest main class main class get current assemble task init manifest class path class path to string | marks the archive as an executable jar with the specified main class |
public void init config arg runnable t config this config config | the specified config argument will be called back so that any last minute |
public resource feature get resource feature return resource feature | a reference to the delegate object used to extract resources to the |
public boolean get boolean value string value get value return value null boolean parse boolean value null | conveniently typed method for converting |
public string get help text string builder builder new string builder builder append name builder append get alias text builder append n n builder append get description builder append n return builder to string | builds a message suitable for displaying in response to a help command |
public int get integer value string value get value return value null integer parse int value null | conveniently typed method for converting |
public dispatch feature get dispatch feature return dispatch feature | a reference to the delegate object used to dispatch the instructions |
public string get help text string builder builder new string builder builder append name builder append get key builder append n n builder append get description builder append n n when the key is not specified the application assumes a value of builder append get missing default builder append builder append n when the key is specified but not assigned a value the application assumes a value of builder append get empty default builder append builder append n return builder to string | builds a message suitable for displaying in response to a help command |
public void create physical layout get root dir mkdirs get bin dir mkdirs get docs dir mkdirs get src dir mkdirs get log dir mkdirs get conf dir mkdirs get lib dir mkdirs get java dir mkdirs get resources dir mkdirs get manifest dir mkdirs | creates the project layout on the filing system |
public void init config string name arg runnable source archive config get entry name init config config | pass thru method to |
public compile feature get compile feature return compile feature | a reference to the delegate object used to perform in code compilation |
public void init project archive string name string prefix init project archive name prefix null null | convenient wrapper when just the default tar is required with no |
public void relax permissions ant target target new ant target relax permissions chmod chmod new chmod chmod set task name sample permissions target add task chmod chmod set dir get root dir get parent file chmod set includes get root name chmod set perm 777 target execute | apply 777 permissions all the way down the project structure |
public retrieve feature get retrieve feature return retrieve feature | a reference to the delegate object used to download project dependencies |
private file get path class name file jar new file name get protection domain get code source get location to uri return jar | gets the filename of the jar that contains the specified class name |
public property info get level return level | one of the logging levels constant values as declared in the log4j level |
public property info get main memory return main memory | overrides the amount of memory used by the main vm |
public property info get command memory string name string key protoj memory name return parent get property store get lazy info key specify the amount of memory for the command vm eg 4m | overrides the amount of memory used by the specified command vm |
public void clean file utils delete directory get layout get target dir file utils delete directory get layout get classes dir get classes archive visit new arg runnable classes entry public void run classes entry entry if entry is classpath lib string name entry get archive entry get name file file new file get layout get lib dir name file utils delete directory file | deletes the target and classes directories as well as any jars that |
public property info get command debug string name string key protoj debug name string builder builder new string builder builder append set to true in order to debug a vm for the specified command vm builder append n for example d key return parent get property store get lazy info key builder to string boolean false to string boolean true to string | specifies whether or not to debug for a given command |
public property info get command debug suspend string name string key protoj debug suspend name string builder builder new string builder builder append set to true in order to suspend a vm when starting a debug session for builder append the specified command n for example d key return parent get property store get lazy info key builder to string boolean false to string boolean true to string | specifies whether or not to suspend a vm for the given command name |
public void add classes string name get classes archive add entry name null null null | convenience method that schedules the creation of a single jar file with |
public property info get command debug port string name string key protoj debug port name string builder builder new string builder builder append set to the port number to use when starting a debug session for builder append the specified command n for example d key 11111 return parent get property store get lazy info key builder to string 11111 11111 | specifies the remote debugging port to use when debugging for the given |
public dirconf feature get dirconf feature return dirconf feature | a reference to the delegate object used to provide configuration |
public void add javadoc string name string memory get javadoc archive add entry name null null null memory | convenience method that schedules the creation of a single javadoc |
public property info get quiet return quiet | set to true or false to turn the console appender on or off |
public scpconf feature get scpconf feature return scpconf feature | a reference to the delegate object used to provide configuration |
public file get exe file archive feature feature get delegate get archive feature classes archive classes feature get classes archive classes entry entry classes get entry get exe jar tag return entry get archive entry get artifact | the executable jar we shall use to create the sample project |
public void add sources string name get source archive add entry name null null null | convenience method that schedules the creation of a single sources |
public property info get junit memory return junit memory | overrides the amount of memory used by the junit vm |
public java command get java command return java command | the command to execute a java process |
public instruction chain get instruction chain return instruction chain | access to the class responsible for containing all the instructions to be |
public void create all archives create classes archives create info archives | creates all the archives by delegating to |
public property info get gcskip return gcskip | whether or not the upload to google code should occur |
public command store get command store return command store | delegated functionality see |
public property info get scpskip return scpskip | whether or not the remote copy via scp should occur |
public void create info archives archive feature archive delegate get archive feature archive get javadoc archive create archive get jar tag archive get source archive create archive get jar tag archive get javadoc archive create archive get exe jar tag archive get source archive create archive get exe jar tag | creates just the sources and javadoc archives |
public property info get compile source return compile source | the javac source option |
public property info get compile target return compile target | the javac target option for cross compilation |
public property store get property store return property store | delegated functionality see |
public property info get compile bootclasspath return compile bootclasspath | the javac bootstrap option for cross compilation |
public void configure default delegate get dirconf feature clean default delegate get dirconf feature configure default false | configures proto j from the default profile with no interpolation |
public property info get compile extdirs return compile extdirs | the javac extdirs option for cross compilation |
public standard properties get properties return properties | a container of references of those properties belonging to this |
public property info get compile memory return compile memory | the javac maximum memory option |
public property info get profile home return profile home | the directory containing all the profiles that can be used for |
public proto logger get proto logger return proto logger | delegated functionality see |
public property info get profile url return profile url | the remote url containing all the profiles that can be used for |
public logger get logger return proto logger get proto logger | access to the protoj log4j instance |
public protoconf command get protoconf command return protoconf command | the command used to configure proto j |
public docs command get site command return site command | the command used to create documentation for the protoj googlecode |
public string get version number return 1 7 3 | used in version information and names of jar files for example |
public string get project name return info get project name | the name of the project that includes the version number |
public string get exe jar name return info get exe jar name | the complete name of the executable jar file as deployed on google code |
public string get jar name return info get jar name | the complete name of the maximum dependencies jar file as deployed on |
public string get project archive name return info get project archive name | the name of the generated tar file |
public string get group id return info get group id | the group id to use when publish to the maven repository |
public string get version return info get version | the project version number |
public file get project home return info get project home | the proto j home directory |
public string get central repository url return info get central repository url | proto j artifacts are deployed to the maven central repository this is |
public string get project url return info get project url | the google code project url for proto j |
public string get browsable url return info get browsable url | the browsable subversion url for the project |
public string get download ur return info get download ur | the googlecode download url for the project artifacts |
public string get exe download url return info get exe download url | the url for downloading the executable jar from googlecode |
private void execute session project layout layout get verify project get layout file src dir layout get src dir file shell script layout get shell script if src dir exists throw new runtime exception unable to find src directory for the compilation part of tar verification at src dir get absolute path script session session new script session shell script throwing listener listener new throwing listener shell script session add command retrieve listener null session add command compile listener null session add command archive listener null session add command test listener null session execute | executes the project commands failing if any of those commands |
public proto info get info return info | created so that |
public void init merge archives string name string archives get entry name get archive entry init merge archives archives | pass thru method that ensures the specified archives are merged to the |
public void init merge all archives string name filename filter filter new filename filter public boolean accept file dir string name return parent is classes jar name get entry name get archive entry init merge archives filter | specifies that classes archives in the |
public void release string gc user name string gc password string sf user name show summary create archives verify project archive publish archives sf user name upload project archive gc user name gc password | carries out the steps to release protoj starting from just the compiled |
private void publish archives string sf user name publish feature publish feature project get delegate get publish feature publish feature deploy all sf user name null null null | publishes the archives to the sourceforge maven repository |
private void upload project archive string user name string password standard project delegate project get delegate string summary new publish to maven repository feature string labels type archive op sys all featured string google name string format s src tar gz project get project name delegate get upload google code feature upload tar google name labels summary user name password | uploads the project tar archive to the googlecode website |
public standard project get delegate return project | the main protoj domain object |
public void init merge archives string name string archives get entry name init merge archives archives | any additional classes archives in the |
public void init merge all archives string name filename filter filter new filename filter public boolean accept file dir string name return parent is sources jar name get entry name init merge archives filter | specifies that source archives in the |
private void assert log contents string log acme session get acme project load log assert assert true log contains archive assert assert true log contains task archive started assert assert true log contains building jar assert assert true log contains target archive acme 1 0 jar assert assert true log contains target archive foo jar assert assert true log contains task archive finished | asserts that the build sent the expected text to the log file |
private void assert foo classes jar project layout acme layout acme session get acme project get layout file jar new file acme layout get archive dir foo jar verify archive verify new verify archive jar verify init included resources test txt verify init excluded resources acme acme project class acme core acme core class verify execute manifest manifest verify get manifest this attribute was hard coded in file assert assert true manifest get main attributes values contains foo this attribute was added programmatically assert assert true manifest get main attributes values contains bar | asserts the contents of the foo classes jar is as expected |
private void assert foo sources jar project layout acme layout acme session get acme project get layout file jar new file acme layout get archive dir foosources sources jar verify archive verify new verify archive jar verify init included resources acme acme project java org junit test java verify execute | asserts the contents of the foo sources jar is as expected |
private void assert foo javadoc jar project layout acme layout acme session get acme project get layout file jar new file acme layout get archive dir foojavadoc javadoc jar verify archive verify new verify archive jar verify init included resources acme acme project html verify execute | asserts the contents of the foo javadoc jar is as expected |
public console appender set console appender enabled boolean enable string name proto console appender appender appender logger get root logger get appender name boolean appender exists appender null if enable if appender exists appender new console appender new pattern layout get appender pattern console appender system out appender set name name proto logger add appender appender ant logger add appender appender logger get root logger add appender appender else if appender exists proto logger remove appender appender ant logger remove appender appender logger get root logger remove appender appender return console appender proto logger get appender name | adds or removes a new console console appender to the log4j loggers |
public void set reporting enabled boolean reporting enabled this reporting enabled reporting enabled | switch reporting on and off with this method |
public void begin command string command if reporting enabled logger info logger info get highlighted message command logger info | logs that a command is about to be executed |
public void unknown command string command if reporting enabled logger error unknown command command | logs that the given command was unknown when an execution was attempted |
public void dispatch commands get shell project get project core dispatch commands | this method is designed to be called directly from protoj |
public void project started if reporting enabled logger info logger info get project started message logger info | logs that the project has started |
public void project succeeded if reporting enabled logger info logger info get project succeeded message logger info | logs that the project command was successfully executed |
public void all get shell project clean in new vm get shell project compile get shell project assemble in new vm test | executes a full build of the protoj shell project |
public void project failed throwable e if reporting enabled logger info logger info get project failed message e logger info else logger info e | logs that the project command was unsuccessfully executed |
public shell project get shell project return shell project | external access to code shell project code just for use by |
private void init logger proto logger logger proto logger get singleton logger set file appender enabled true get dir config get log file get absolute path this logger logger | informs the logger of the location of the log file |
public void init jvmargs list string jvmargs this jvmargs add all jvmargs this jvmargs jvmargs for string value jvmargs argument jvmarg java create jvmarg jvmarg set value value | invoke if any virtual machine arguments are required |
public void init classpath classpath config config path classpath get java create classpath config configure classpath | invoke if the classpath should be configured |
public void dispatch commands get standard project dispatch commands | this method is designed to be called programmatically from the shell vm |
public void test acme project session session new acme project session get standard project session execute | puts the acme project test fixture through its paces |
public void list string builder list new string builder available commands set string commands get project core get commands key set for string command commands list append list append command system out println list | lists all the available commands |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.