input
stringlengths
10
828
output
stringlengths
5
107
public void project failed string description get logger info get logger info build failed get logger info description log elapsed time get logger info string log path core get layout get log file get absolute path system err println build failed see log path for more information
logs that the project command was unsuccessfully executed using the
public void clean clean task clean classes new clean task get layout get classes dir clean classes init logging get layout get log file clean classes execute clean task clean target new clean task get layout get target dir clean target init logging get layout get log file clean target execute collection assemble task tasks get assemble feature get assemble tasks values for assemble task task tasks file dest file task get jar get dest file if dest file exists get proto logger get proto logger info deleting dest file get absolute path dest file delete
deletes all generated files and directories including the log file
public void init fork string max memory boolean spawn this fork true this max memory max memory this spawn spawn java task set fork true java task set maxmemory max memory java task set spawn spawn if spawn java task set outputproperty stdout property java task set error property stderr property java task set result property result property
invoke this method if the virtual machine should fork
public void init args list string args this args add all args for string value args argument arg java task create arg arg set value value
invoke if any arguments to main are required
public void visit and remove arg runnable instruction visitor break visit false array list instruction instructions new array list instruction instructions add all command instructions values iterate over a copy of the instruction values and remove the whole hashmap entry each time during the iteration iterator instruction values instructions list iterator while values has next break visit instruction instruction values next visitor run instruction values remove remove instruction get name command instructions clear
visits each of the instructions in turn removing them as they are
public void init jvmargs list string jvmargs this jvmargs add all jvmargs for string value jvmargs argument jvmarg java task create jvmarg jvmarg set value value
invoke if any virtual machine arguments are required
public long get elapsed hours return elapsed hours
the elapsed time in hours
public instruction chain get instruction chain return core get instruction chain
access to the class responsible for containing all the instructions to be
public void init classpath arg runnable path config path classpath get java task create classpath config run classpath
invoke if the classpath should be configured
public string get version number return 1 8 4
used in version information and names of jar files for example
public void init debug int port boolean suspend debug suspend suspend y n debug port port argument jvmarg java task create jvmarg jvmarg set line xdebug xrunjdwp transport dt socket address port server y suspend debug suspend
invoke if debugging is required
public void init weaving file weaver jar argument jvmarg java task create jvmarg jvmarg set value javaagent weaver jar get absolute path
invoke if loadtime weaving is required
public long get elapsed minutes return elapsed minutes
the elapsed time in minutes
public void init local jmx argument jvmarg java task create jvmarg jvmarg set value dcom sun management jmxremote
invoke if local jmx connectivity is required
public void init remote jmx integer port argument jvmarg java task create jvmarg jvmarg set value dcom sun management jmxremote port port
invoke if remote jmx connectivity is required
public command store get command store return core get command store
delegated functionality see
public long get elapsed seconds return elapsed seconds
the elapsed time in seconds
public scp command get scp command return scp command
the command line handler for delegating to the scp feature
private string create script name string name string script name if name contains script name name else string os name system get property os name to upper case boolean is windows os name index of windows 0 script name is windows name bat name sh return script name
if the specified name already has an extension then it is returned
public property info get debug property return debug property
set to true or false to to turn debugging on or off
private void update elapsed time long start time millis long end time new date get time long elapsed millis end time start time millis long one hour in millis 60 60 1000 long one minute in millis 60 1000 long one second in millis 1000 elapsed hours elapsed millis one hour in millis float leftover from hours float elapsed millis float one hour in millis elapsed minutes long leftover from hours one minute in millis float leftover from minutes leftover from hours one minute in millis elapsed seconds long leftover from minutes one second in millis
updates the amount of time the build took message
public property info get level property return level property
one of the logging levels constant values as declared in the log4j level
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 profile 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 configure command get configure command return configure command
the command line handler for delegating to the configuration
public property info get quiet property return quiet property
set to true or false to turn the console appender on or off
public property info get debug port property return debug port property
set to a valid port number that the debugger should listen for
public archive feature get parent return parent
the parent of this feature
public help command get help command return help command
use this command to report project information such as version strings
public property info get gcskip property return gcskip property
whether or not the upload to google code should occur
private void apply rwx project layout layout project get layout create the parent ant target ant target target new ant target extract tar files target init logging layout get log file project msg info applies the chmod chmod chmod new chmod chmod set task name rwx target add task chmod chmod set dir get extracted project get layout get root dir chmod set includes chmod set perm 777 target execute
applies rwx permissions to the extracted project
public property info get scpskip property return scpskip property
whether or not the remote copy via scp should occur
private void execute session standard project extracted project get extracted project file src dir extracted project get layout get src dir 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 extracted project create script session throwing listener listener new throwing listener extracted project session add command compile listener null session add command test listener null session execute
executes the project commands failing if any of those commands
public standard project get extracted project project layout this layout project get layout file verify tar dir new file this layout get target dir verify tar string prefix project get archive feature get project archive get prefix file root dir new file verify tar dir prefix string script name this layout get script name standard project project new standard project root dir script name null return project
creates a project instance representing the project being verified in the
public version command get version command return version command
use this command to report version information to stdout
public void create basic project file parent dir file jar file create project parent dir basic jar file bin basic sh bin basic bat src resources basic ivy xml conf dev properties readme txt notice txt src java org basic core basic core java src java org basic system basic project java
creates the basic project under the specified parent dir
public string get uncompressed path return tar stem get absolute path tar
returns the full path name of the uncompressed tar file eg
private void start project main vm string args project 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 string get archive path return get uncompressed path gz
returns the full path name of the compressed tar file eg
public clean command get clean command return clean command
use this command to clean the generated content not including the log
private void copy jar file file jar file file dest file new file layout get lib dir protoj jar file utils copy file jar file dest file
copies the jar file into the sample lib directory
private 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 layout get root dir get parent file chmod set includes layout get root name chmod set perm 777 target execute
apply 777 permissions all the way down
public void create archive boolean no src boolean is global rwx file archive dir layout get archive dir archive dir mkdirs this no src no src this is global rwx is global rwx this tar task new tar task tar stem get parent tar stem get name init tar task if config null config run this this tar task execute
creates a tar of the parent in the target directory
public assemble command get assemble command return assemble command
use this command to create one or more jar files from the project
public file get archive dir return archive dir
the directory where archives are generated
public string get conf excludes pattern string conf dir name layout get conf dir get name return conf dir name properties
the pattern used to filter out properties files from directly under the
public string get lib excludes pattern string lib dir name layout get lib dir get name return string format s s jar s s jar s s jar lib dir name layout get javadoc postfix lib dir name layout get source postfix lib dir name layout get src postfix
the pattern used to filter out source and javadoc jar files from directly
public junit command get junit command return junit command
use this command to exercise all junit tests under the source directory
public void visit arg runnable javadoc entry visitor collection javadoc entry values entries values for javadoc entry entry values visitor run entry
convenient method that visits each entry in this archive
public clean command get clean command return parent get core get clean command
use this command to clean the generated content not including the log
public archive command get archive command return archive command
use this command to create one or more jar files from the parent
public javadoc entry get entry string name return entries get name
accessor for the entry corresponding to the given name
public tar command get tar command return tar command
use this command to make a compressed tar of the parent
public javadoc task get javadoc task return javadoc task
the ant task responsible for creating the javadocs during the call to
public verify tar command get verify tar command return verify tar command
use this command to verify the correctness of a created parent tar
public retrieve command get retrieve command return parent get core get retrieve command
use this command to access the functionality for downloading
public compile command get compile command return parent get core get compile command
use this command to perform in code compilation
public javac command get javac command return parent get core get javac command
use this command to invoke javac usually from a script to compile just
public assemble task get current assemble task return current assemble task
the ant task responsible for creating the jar during the call to
public publish command get publish command return publish command
use this command to publish parent artifacts
public void report property help property info property string builder builder new string builder builder append name builder append property get key builder append n n description builder append property get description builder append n n when the key is not specified the application assumes a value of builder append property 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 property get empty default builder append builder append n system out println builder
reports help on the specified property to stdout
public void init config arg runnable publish feature config this config config
the provided config argument is called back when
public javadoc command get javadoc command return javadoc command
use this command to create the project javadocs
private void merge properties to working dir file profile instance dir list file profile files get conf properties profile instance dir for file profile file profile files string relative path get relative path profile instance dir profile file file project file new file project get layout get root dir relative path merge files to working dir profile file project file
all the properties from the profile instance conf directory need to
public string get pom resource return pom resource
the maven pom resource on the classpath used to publish the artifact
public string get gpg options return gpg options
the options to gpg responsible for creating the ascii armored
public ivy command get ivy command return core get ivy command
use this command to access ivy related fuctionality
public void init publish string name string pom name string gpg options get entry name init publish pom name gpg options
call this method if publishing to a maven repository is required
private file create sig string gpg options file artifact string artifact sig name artifact get name asc file working dir get working dir file artifact sig new file working dir artifact sig name string line string format gpg options artifact get absolute path artifact sig get absolute path return execute gpg command line artifact artifact sig
creates a signature file in the working directory for the specified
public void init include 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 file get weaver jar return weaver jar
the jar file used for load time weaving or null if not configured
public void init exclude archives string name string archives final list string excluded arrays as list archives filename filter filter new filename filter public boolean accept file dir string name return excluded contains name parent is classes jar name get entry name get archive entry init merge archives filter
specifies that all the classes archives except for the excluded list in
public compile command get compile command return core get compile command
use this command to perform in code compilation
private void maybe add provider ant target target if is using provider install wagon provider task provider new install wagon provider task provider set task name publish wagon target add task provider provider set artifact id provider artifact id provider set version provider version
if a provider configuration has been specified then a new provider will
public void execute file script dir shell script get parent file string executable shell script get canonical path for int i 0 i commands size i current tag tags get i current command commands get i current exec new command task script dir executable current command current exec init spawn false current exec execute arg runnable script session current listener listeners get i if current listener null current listener run this
this method executes all of the accumulated commands calling back the
private void attach sources artifact string artifact name archive feature feature parent get archive feature source archive archive feature get source archive archive entry source archive entry archive get entry artifact name if entry null file artifact entry get artifact attached artifact attach current deploy task create attach attach set file artifact attach set classifier sources maybe attach signature file artifact sources jar
attaches the sources artifact associated with the given artifact name to
private void attach javadoc artifact string artifact name archive feature feature parent get archive feature javadoc archive archive feature get javadoc archive javadoc entry entry archive get entry artifact name if entry null file artifact entry get archive entry get artifact attached artifact attach current deploy task create attach attach set file artifact attach set classifier javadoc maybe attach signature file artifact javadoc jar
attaches the javadoc artifact associated with the given artifact name to
public property store get property store return core get property store
delegated functionality see
public standard project get parent return parent
the parent of this feature
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
creates the jar for the given name under
public deploy task get current deploy task return current deploy task
the task being processed by
public classes entry get entry string name return entries get name
accessor for the entry corresponding to the given name
public classes entry get current classes entry return current classes entry
represents the artifact that contains the project class files that is
public proto logger get proto logger return core get proto logger
delegated functionality see
public void init executable jar string current main class parent get project get dispatch feature get current main class init executable jar current main class
convenience method that delegates to
public pom get current pom return current pom
the task being processed by
private void verify contents file jar string names verify archive verify archive new verify archive jar verify archive init included resources names verify archive execute
asserts that the given jar file exists and contains resources as listed
public void visit arg runnable classes entry visitor collection classes entry values entries values for classes entry entry values visitor run entry
convenient method that visits each entry in this archive
public logger get logger return core get logger
access to the protoj log4j instance
public void release string gc user name string gc password string sf user name show summary extract site create archives verify project archive upload to maven sf user name upload to google code gc user name gc password
carries out the steps to release protoj starting from just the compiled
public boolean is using provider return provider artifact id null
whether or not a maven wagon provider has been configured
public string get source postfix return source postfix
forms part of the name of each source archive archive
private void extract site project layout layout project get delegate get layout file wiki dir new file layout get root dir get parent file wiki if wiki dir exists string message checked out wiki directory is required wiki dir get absolute path throw new runtime exception message file dir project extract site file src dir new file dir protoj site wiki file utils copy directory src dir wiki dir
just extracts the googlecode website files from the jar and copies to the
public void upload to maven 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
public file get working dir if working dir null working dir new file parent get layout get target dir publish working dir mkdirs return working dir
the directory where the ivy and maven files are extracted to
public string get src postfix return src postfix
some archives contain the string src to indicate they are jar files
private void create archives standard project delegate project get delegate archive feature archive delegate get archive feature archive get classes archive create archives archive get javadoc archive create archives archive get source archive create archives archive get project archive create archive false true
creates the tar and jar files that are to be uploaded to googlecode
public project layout get layout return core get layout
delegated functionality see
public string get javadoc postfix return javadoc postfix
forms part of the name of each javadoc archive archive
public script session create script session return new script session get layout get shell script
creates a helper that is able to drive the project represented by this
public string get relative path file child int relative path pos get root dir get absolute path length return child get absolute path substring relative path pos 1
calculates the relative path string of the child to the layout root dir