input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public string get root name return get root dir get name | convenience method that returns the name of the root project directory |
public boolean is no src return no src | whether or not to include the source directory in the tar |
public file get bin dir return bin dir | the directory containing the files such as shell scripts |
public tar get ant tar return tar task get tar | the underlying ant object which can be used for further customization |
public file get shell script return shell script | the script responsible for executing the project |
public void release string user name string password standard project delegate project get project show summary delegate delegate get assemble feature assemble delegate get junit feature junit delegate get tar feature tar false true delegate get verify tar feature verify tar verify proto resources string summary better architecture easier command api ivy feature string labels type archive op sys all featured string google name project get project name src tar gz delegate get upload google code feature upload tar user name password google name labels summary | convenient short hand for invoking the assemble javadocs test tar |
public string get uncompressed path string name project get layout get target dir get absolute path return new file name get name tar get absolute path | returns the full path name of the uncompressed tar file eg |
public string get script name return get shell script get name | convenience method that returns the name of the shell script |
public string get compressed path return get uncompressed path gz | returns the full path name of the compressed tar file eg |
public file get docs dir return docs dir | the directory containing documentation |
private file get working properties file project layout layout project get layout string working properties name layout get properties file get name string conf dir name layout get conf dir get name file working conf dir new file get working dir conf dir name file working properties file new file working conf dir working properties name return working properties file | calculates the path of the single project properties file when in the |
public void tar boolean no src boolean is global rwx file target dir project get layout get target dir this no src no src this is global rwx is global rwx this tar task new tar task target dir get absolute path get name init tar task if config null config run this this tar task execute | creates a tar of the project in the target directory |
public file get javadocs dir return javadocs dir | the directory where javadocs are generated |
public void init ivy core init ivy | this method must be called if you wish to support automatic download of |
public void init logging file log file target init logging log file project msg info | enables logging to the specified log file at project |
public attribute init manifest string name string value manifest create manifest attribute attribute new manifest attribute name value manifest add configured attribute attribute return attribute | call repeatedly in order to add a top level attribute to the manifest |
private void merge properties 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 profile file project file | all the properties from the profile need to override their equivalents in |
private manifest create manifest if manifest null manifest new manifest jar add configured manifest manifest return manifest | lazily creates a manifest instance and adds to the jar task |
public string get log excludes pattern file log file return log file get parent file get name log file get name | the pattern used to filter out the protoj log file from the log |
public void init junit string memory this junit feature new junit feature this memory | this method must be called if junit tests are required in order to |
public string get conf excludes pattern string conf dir name project get 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 project get layout get lib dir get name return string format s javadoc jar s sources jar s src jar lib dir name lib dir name lib dir name | the pattern used to filter out source and javadoc jar files from directly |
public void init config boolean interpolated this configure feature new configure feature this interpolated | this method must be called if configuration with properties files is to |
public void init debug int port boolean suspend debug suspend suspend y n debug port port argument jvmarg junit create jvmarg jvmarg set line xdebug xrunjdwp transport dt socket address debug port server y suspend debug suspend | invoke if debugging is required |
public void write output string system out get stdout if system out null system out length 0 system out println system out string system err get stderr if system err null system err length 0 system err println system err | all the output from the executed command seems to get buffered |
public file get conf dir return conf dir | the directory containing configuration files e |
private string get relative path file parent file child int relative path pos parent get absolute path length return child get absolute path substring relative path pos | calculates the relative path string of the child to the parent |
public void init key authentication string passphrase string key file scp set passphrase passphrase scp set keyfile key file | call this method to when using key authentication |
public void init password authentication string password scp set password password | call this method when using simple password authentication |
public scp get scp return scp | the underlying ant task |
public file get profile dir return profile dir | the directory that contains profile subdirectories as defined by the |
public void init javadoc string memory file src dir get layout get java dir file dest dir get layout get javadocs dir this javadoc task new javadoc task src dir dest dir memory | this method must be called if javadoc creation is to be supported |
public void add command string command add command command null null | convenience call when not interested in receiving a call to a listener |
private void copy dir file src file dest string includes string excludes ant target target new ant target configure target init logging project get layout get log file project msg info copy copy new copy target add task copy copy set task name copy dir file set file set new file set file set set dir src if includes null file set set includes includes if excludes null file set set excludes excludes copy add fileset file set copy set todir dest copy set overwrite true target execute | copies the src directory to the dest directory overwriting any existing |
public file get java dir return java dir | the directory containing compilation sources e |
public void execute file script dir bash script get parent file string executable bash 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 |
public file get bash script return bash script | the script that the commands are sent to |
public command task get current exec return current exec | the command object resulting from the most recent command execution |
public string get current command return current command | the name of the most recently executed command |
public file get resources dir return resources dir | the directory containing resources e |
public string get current tag return current tag | the tag associated with the most recently executed command |
private void filtered copy file profile instance dir ant target target new ant target configure copy copy new copy copy set task name copy target add task copy file set file set new file set file set set dir profile instance dir file set set excludes conf properties copy add fileset file set copy set todir get working dir copy set overwrite true filter set filter set copy create filter set filter set set begin token filter set set end token filters file filters file filter set create filtersfile filters file set file get working properties file copy execute | copies the profile instance directory to the working directory except for |
public file get manifest dir return manifest dir | the directory containing manifest files e |
public release feature get release feature return release feature | delegate helper responsible for implementing the release procedure |
private project layout get proto layout file protoj root dir new file system get property protoj root dir string protoj script name system get property protoj script name standard project proto project new standard project protoj root dir protoj script name project layout layout proto project get layout return layout | gets the layout of the protoj project |
public file get lib dir return lib dir | the directory containing java libraries e |
private string create version info string builder builder new string builder builder append proto j version core get version number return builder to string | nice to factor this into a method of its own |
public standard project get acme project return acme project | similar to the real acme project |
public file get acme file project layout acme layout get acme project get layout return new file acme layout get target dir testvmarg txt | specifically used by the |
public void dispatch commands project get dispatch feature dispatch commands | dispatches command line arguments to the commands that were set up in the |
public void find alien string galaxy string builder builder new string builder builder append no life found in the builder append galaxy builder append galaxy please try again later system out println builder to string | probably doesnt rival seti as yet just displays a message to stdout |
public file get junit reports dir return junit reports dir | the directory containing junit reports e |
public file get jar string jar name return new file get lib dir jar name jar | convenience method that returns the fully qualified jar file given just |
public dispatch feature get dispatch feature return core get dispatch feature | a reference to the delegate object used to dispatch the instructions |
public file get manifest string name return new file get manifest dir name mf | convenience method that returns the fully qualified manifest file given |
public file get weaver jar return get jar aspectjweaver | used to provide aspectj runtime weaving support |
public compile feature get compile feature return core get compile feature | a reference to the delegate object used to perform in code compilation |
public ivy feature get ivy feature return core get ivy feature | a reference to the delegate object used to download dependencies and |
public junit feature get junit feature return junit feature | a reference to the delegate object used to provide configuration |
public tar feature get tar feature return tar feature | a reference to the delegate object used to provide configuration |
public assemble feature get assemble feature return assemble feature | a reference to the delegate object used to provide jar creation |
public verify tar feature get verify tar feature return verify tar feature | a reference to the delegate object used to provide configuration |
public upload google code feature get upload google code feature return upload google code feature | a reference to the delegate object used to provide the google code upload |
public void ivy retrieve if get ivy file exists ant target target new ant target ivy feature target get project set base dir parent get layout get root dir target init logging parent get layout get log file project msg info ivy retrieve new ivy retrieve target add task ivy retrieve ivy retrieve set task name ivy retrieve ivy retrieve set file get ivy file if config null config run this target execute | downloads the dependencies described in the project ivy |
public void maven retrieve if get maven file exists ant target target new ant target maven feature target init logging parent get layout get log file project msg info dependencies create dependencies target string classes dependency classes fileset dependencies set fileset id classes dependency copy classes add dependency target classes dependency string javadocs dependency javadocs fileset dependencies set javadoc fileset id javadocs dependency copy javadocs add dependency target javadocs dependency string sources dependency sources fileset dependencies set sources fileset id sources dependency copy sources add dependency target sources dependency if config null config run this target execute | downloads the dependencies described in the project pom |
public ajc task get compile task return compile task | the underlying ant task used to perform the compilation |
private dependencies task create dependencies ant target target point to the project pom xml file in the conf directory pom pom new pom pom set task name maven feature pom target add task pom pom set id protoj project pom set file get maven file assign the pom to a new dependencies task dependencies task dependencies new dependencies task dependencies set task name maven feature dependencies target add task dependencies dependencies set pom ref id protoj project return dependencies | sets up the basic maven dependencies task |
public aspect jcompile task get ajc compile task return ajc compile task | the ant wrapper used to carry out aspectj compilation |
public scp feature get scp feature return scp feature | a reference to the delegate object used to provide scp functionality |
public javac compile task get javac compile task return javac compile task | the ant wrapper used to carry out javac compilation |
private copy add dependency ant target target string dependency project layout layout parent get layout copy copy new copy target add task copy copy set task name maven feature copy artifact file set file set new file set copy add fileset file set reference dependency ref new reference target get project dependency file set set refid dependency ref copy set todir layout get lib dir copy set overwrite true mapper flatten mapper copy create mapper mapper type flatten type new mapper type flatten type set value flatten flatten mapper set type flatten type return copy | adds an ant task to the specified target that copies the project pom |
public void compile string includes string excludes use if statement don t need polymorphism if aspect compiler compile ajc includes excludes else compile javac includes excludes | compiles the source code based on the specified ant patterns |
public void compile ajc string includes string excludes copy resources ajc compile task create ajc task dir set dir set ajc compile task get dir set if includes null dir set set includes includes if excludes null dir set set excludes excludes if config null config run this ajc compile task execute if ajc compile task is success throw new information exception there was a problem compiling the source code | invokes the aspectj compiler |
public core project get parent return parent | the parent of this feature |
public void compile javac string includes string excludes copy resources javac compile task create javac task dir set dir set javac compile task get dir set if includes null dir set set includes includes if excludes null dir set set excludes excludes if config null config run this javac compile task execute if javac compile task is success throw new information exception there was a problem compiling the source code | invokes the javac compiler |
public void compile javac list string options file src dir parent get layout get src dir if src dir exists parent get logger info applying javac options javac compile task task create javac task assign properties options task copy resources task execute if task is success throw new information exception there was a problem compiling the source code | compiles a set of files in the source directory using the javac compiler |
public void compile ajc list string options file src dir parent get layout get src dir if src dir exists parent get logger info applying ajc options aspect jcompile task task create ajc task assign properties options task copy resources task execute if task is success throw new information exception there was a problem compiling the source code | aspectj compiling equivalent of |
public ivy retrieve get ivy retrieve return ivy retrieve | the ivy ant task used to update the repository with the project |
public configure feature get configure feature return configure feature | a reference to the delegate object used to provide configuration |
public boolean is aspect compiler return aspect compiler | true if the ajc compiler is configured false if the javac compiler is |
public void init replacements configuration replacements this replacements replacements | if variable replacement is required then this method should be called to |
public property info get info string key return properties get key | looks up the |
public dependencies task get dependencies return dependencies | the maven ant task used to update the repository with the project |
public aspect jcompile task create ajc task project layout layout parent get layout aspect jcompile task task new aspect jcompile task layout get java dir layout get classes dir layout get classpath config task init logging layout get log file task get compile task set failonerror true return task | creates the ajc compile implementation instance |
private file create working dir core project parent file target dir parent get layout get target dir file working dir new file target dir resource feature return working dir | returns a reference to the directory used as temp storage |
public file extract to dir string resource name file dest dir file dest file if replacements null no variable replacements so extract straight to dest dest file extract resource resource name dest dir else use working dir as source of replacement move working dir mkdirs dest file new file dest dir resource name file working file extract resource resource name working dir move and resolve working file dest file return dest file | extracts the resource on the classpath with the specified name to the |
public void makepom string settings ref ant target target new ant target ivy feature target init logging core get layout get log file project msg info ivy make pom makepom new ivy make pom target add task makepom makepom set task name makepom makepom set ivy file ivy file makepom set pom file pom file mapping mapping makepom create mapping mapping set conf compile mapping set scope compile target execute | decorates the ivy makepom ant task |
public javac compile task create javac task project layout layout parent get layout javac compile task task new javac compile task layout get java dir layout get classes dir parent get layout get classpath config task init logging layout get log file return task | creates the javac compile implementation instance |
private file extract resource string resource name file dest dir file file new file dest dir resource name input stream in get class get resource as stream resource name try file output stream out file utils open output stream file try ioutils copy in out finally if out null out close finally if in null in close return file | extracts the classpath resource with the specified name to the specified |
public void copy resources ant target target new ant target compile feature copy project layout layout parent get layout layout get classes dir mkdirs copy copy new copy target add task copy copy set task name copy copy set todir layout get classes dir file set resource files new file set resource files set dir layout get resources dir copy add fileset resource files target execute | copies the files in the resources directory into the classes directory |
public javac get compile task return compile task | the underlying ant task used to perform the compilation |
public info feature get info feature return info feature | a reference to the delegate object used to provide project information |
public file get ivy file if ivy file null resource feature feature parent get resource feature file conf dir parent get layout get conf dir ivy file feature extract to dir ivy config conf dir return ivy file | the ivy file used to define project dependencies |
public file get maven file if maven file null resource feature feature parent get resource feature file conf dir parent get layout get conf dir maven file feature extract to dir maven config conf dir return maven file | the maven pom file used to define project dependencies |
public void generate javadocs if javadoc task null javadoc task execute else throw new information exception please call standard project init javadoc string before executing the javadoc command | generates the javadocs in the |
public file get ivy file return ivy file | the ivy file used to define project dependencies |
public file get working dir if working dir null working dir new file parent get layout get target dir retrieve working dir mkdirs return working dir | the directory where the ivy and maven files are extracted to |
public void set main class string main class this main class main class this java task set classname main class | sets the main class on the underlying ant task |
public void project succeeded if is reporting enabled get logger info get logger info build successful log elapsed time get logger info | logs that the project command was successfully executed |
public void project failed throwable e get logger info get logger info build failed e log elapsed time get logger info | logs that the project command was unsuccessfully executed using the |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.