input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public exec task get exec task return exec task | the underlying ant implementation object |
public void init logging int level log4j listener listener new log4j listener project add build listener listener | enables logging at the specified level |
public void init compression string name untar untar compression method method new untar untar compression method method set value name untar set compression method | sets the untar compression with the given name |
public void init key authentication string passphrase string key file task set passphrase passphrase task set keyfile key file | call this method to when using key authentication |
public void init password authentication string password task set password password | call this method when using simple password authentication |
public scp get task return task | the underlying ant task |
public void init maven string maven config this maven config maven config | configures with the classpath location of the maven config file |
public void init config arg runnable project archive config this config config | the specified config argument will be called back so that any last minute |
public void init ivy string ivy config this ivy config ivy config | configures with the classpath location of the ivy configuration file |
public void create basic project file parent dir create project parent dir basic bin basic sh bin basic bat src resources basic ivy xml conf profile conf basic properties 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 |
private void apply rwx create the parent ant target ant target target new ant target extract tar files target init logging 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 void create ajc project file parent dir create project parent dir ajc bin ajc sh bin ajc bat src resources ajc ivy xml src resources meta inf aop xml conf profile conf ajc properties conf dev properties readme txt notice txt src java org ajc core ajc core java src java org ajc system ajc project java src java org ajc system ajc trace aj src java org ajc system soft exception aj | creates the ajc project with the specified root dir |
public void retrieve all ivy retrieve maven retrieve | calls both the |
public void copy classes string archive name string to dir string password copy project archive archive name false to dir null password | copies the archive file to the remote location using simple password |
public void create hello world project file parent dir create project parent dir helloworld bin helloworld sh bin helloworld bat conf helloworld properties conf profile conf helloworld properties src java helloworld hello world java readme txt notice txt | creates the hello world project with the specified root dir |
public void ivy retrieve if ivy config null ant target target new ant target ivy feature target get project set base dir parent get layout get root dir target init logging 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 create alien project file parent dir create project parent dir alien bin alien sh bin alien bat conf alien test properties conf profile conf alien properties conf profile conf alien test properties conf profile docs topsecret txt conf profile conf alien properties src java alien core alien core java src java alien test alien test java src java alien alien project java src resources alien ivy xml readme txt notice txt | creates the alien project with the specified root dir |
public void init config arg runnable javadoc archive config archive entry init config config | pass thru method to |
public void maven retrieve if maven config null ant target target new ant target maven feature target init logging 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 standard project get project return parent | the parent project of this feature |
public void init javac source string source get javac compile task get compile task set source source | delegates to the underlying ant task and additionally will allow an |
public command add command string name string max memory runnable body command command new command this name max memory body commands add command return command | adds a new command with the specified command body and that can execute |
public boolean is no classes return no classes | whether or not to include the classes directory in the tar |
public scp get ant scp return scp task get task | the underlying scp ant object for fine grained customization |
public void init ajc source string source get ajc compile task get compile task set source source | delegates to the underlying ant task and additionally will allow an |
public file get key file return key file | the location of the private key when key based authentication is used |
private void copy resource string res parent string res name string resource name protoj exe res parent res name input stream in get class get resource as stream resource name if in null throw new runtime exception couldn t find resource resource name file dest new file layout get root dir res name dest get parent file mkdirs dest create new file try file output stream out new file output stream dest try ioutils copy in out finally ioutils close quietly out finally ioutils close quietly in | copies the file under the protoj resource path to the project root |
public property info add info string key string description return add info key description | convenience method that delegates to |
private string get jboss zip name string name string version core get java specification version if version contains 6 name jboss 5 0 1 ga jdk6 zip else if version contains 5 name jboss 5 0 1 ga zip else throw new runtime exception demo only executes on java 5 or java 6 return name | returns jboss 5 |
public void init ajc memory string memory get ajc compile task get compile task set maxmem memory | delegates to the underlying ant task and additionally will allow an |
public property info get info string key return infos get key | looks up the |
public void init javac memory string memory get javac compile task get compile task set memory maximum size memory | delegates to the underlying ant task and additionally will allow an |
private void add delete ant target target file dir delete delete new delete target add task delete delete set task name trim dir get name delete set dir dir | adds an ant task that deletes the specfied directory |
public void makepom string settings ref ant target target new ant target ivy feature target init logging 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 file get archive file return new file get archive path | the file instance corresponding to |
public scp command get scp return scp | use this command to copy project artifacts with the scp protocol |
public dirconf command get dirconf return dirconf | use this command to apply profiles to the project from a mounted |
public scpconf command get scpconf return scpconf | use this command to apply profiles to the project from a remote url |
public help command get help return help | use this command to report parent information such as version strings and |
public version command get version return version | use this command to report version information to stdout |
public clean command get clean return clean | use this command to clean the generated content not including the log |
public archive command get archive return archive | use this command to create one or more jar files from the parent |
public void compile ajc string includes string excludes copy resources null null 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 junit command get junit return junit | use this command to exercise all junit tests under the source directory |
public tar command get tar return tar | use this command to make a compressed tar of the parent |
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 filter resource to dir ivy config conf dir return ivy file | the ivy file used to define project dependencies |
public void compile javac string includes string excludes copy resources null null 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 verify tar command get verify tar return verify tar | use this command to verify the correctness of a created parent tar |
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 filter resource to dir maven config conf dir return maven file | the maven pom file used to define project dependencies |
public retrieve command get retrieve return retrieve | use this command to access the functionality for downloading |
public compile command get compile return compile | use this command to perform in code compilation |
public void compile javac list string options file src dir parent get layout get src dir if src dir exists copy resources null aop xml parent get logger info applying javac options javac compile task task create javac task assign properties options task 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 clean string name file keyfile string passtext transfer profile name keyfile passtext dirconf clean name | simple strategy that deletes the files mirroring the profile directory |
public javac command get javac return javac | use this command to invoke javac usually from a script to compile just |
public void report project help resource feature feature parent get resource feature string resource path protoj common language english project txt string text feature filter resource to string resource path system out println text | reports general parent help information to stdout by iterating over the |
private void transfer profile string name file keyfile string passtext string profile url parent url name dirconf new dirconf feature parent working dir get parent file file utils delete directory working dir working dir mkdirs scp task new scp task scp task init logging scp task get task set remote file profile url scp task get task set local todir working dir get absolute path if keyfile null this scp task init key authentication passtext keyfile get absolute path else scp task init password authentication passtext scp task execute | configures the application with the config files copied from the remote |
public void compile ajc list string options file src dir parent get layout get src dir if src dir exists copy resources null aop xml parent get logger info applying ajc options aspect jcompile task task create ajc task assign properties options task task execute if task is success throw new information exception there was a problem compiling the source code | aspectj compiling equivalent of |
public file filter resource to dir string resource path file dest dir file dest file new file dest dir resource path return copy resource to file resource path dest file true | extracts the resource on the classpath with the specified name to the |
public void report property help property info property system out println property get help text | reports help on the specified property to stdout |
public void init help string string help string this help string help string | useful for commands that only have very short descriptions that may not |
public publish command get publish return publish | use this command to publish parent artifacts |
public file extract resource to dir string resource path file dest dir file dest file new file dest dir resource path return copy resource to file resource path dest file false | the same as |
public void init help resource string help resource this help resource help resource | provide the path to the resource that contains the help for this command |
public void init config arg runnable classes archive config archive entry init config config | pass thru method to |
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 null 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 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 task get compile task set failonerror true return task | creates the ajc compile implementation instance |
public void extract resource to file string resource path file dest input stream in get class get resource as stream resource path try file output stream out file utils open output stream dest try ioutils copy in out finally if out null out close finally if in null in close | extracts the classpath resource with the specified name to the specified |
public void init classpath lib this is classpath lib true | call this method if the archive should be copied to the lib |
public void filter resource to file string resource path file dest velocity engine ve get velocity engine template t ve get template resource path file dest parent dest get parent file if dest parent exists dest parent mkdirs dest create new file file writer writer new file writer dest t merge context writer writer close | copies the specified resource to the specified dest |
private file get profile dir string name return new file home name | the profile directory which is the name subdirectory under the home |
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 return task | creates the javac compile implementation instance |
public string filter resource to string string resource path velocity engine ve get velocity engine template t ve get template resource path string writer writer new string writer t merge context writer writer close return writer to string | copies the specified resource to a returned string |
private void start vm standard project parent store get parent instruction chain chain parent get instruction chain string opts with body instruction get opts body trim dispatch feature dispatch feature parent get dispatch feature string main class if bootstrap current vm main class dispatch feature get current main class else main class dispatch feature get main class string args chain create main args get name opts with body dispatch feature start vm main class args memory get start vm config | this method must not be inlined into the anonymous inner class as the |
public void copy resources string includes string excludes 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 if includes null resource files set includes includes if excludes null resource files set excludes excludes copy add fileset resource files target execute | copies the files in the resources directory into the classes directory |
private velocity engine get velocity engine if velocity engine null velocity engine new velocity engine properties props new properties props set property resource loader class file props set property class resource loader class org apache velocity runtime resource loader classpath resource loader props set property file resource loader class org apache velocity runtime resource loader file resource loader props set property file resource loader path parent get layout get root path props set property file resource loader cache false props set property file resource loader modification check interval 2 velocity engine init props return velocity engine | lazy getter for the velocity engine as a helper for |
public boolean is classpath lib return is classpath lib | true if the generated jar is to be copied to the lib directory |
private void init project dependencies project dependencies add all repo dependencies project dependencies add new dependency info org aspectj aspectjrt null project dependencies add new dependency info org aspectj aspectjweaver null project dependencies add new dependency info org aspectj aspectjtools null project dependencies add new dependency info null ant googlecode 0 0 1 project dependencies add new dependency info null jsch 0 1 41 project dependencies add new dependency info null get jar tag null | adds the dependency information for this project which is accessed from |
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 parent 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 release string gc user name string gc password string sf user name show summary project get delegate get junit feature junit project create all archives 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 file get project home string user home system get property user home return new file user home protoj | the proto j home directory |
private file get working properties file project layout layout parent 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 parent properties file when in the |
public string get central repository url return http repo1 maven org maven2 com google code protoj | proto j artifacts are deployed to the maven central repository this is |
public void upload to google code string gc user name string gc password standard project delegate project get delegate archive feature archive delegate get archive feature classes archive classes archive get classes archive archive entry classes archive entry classes get entry project get exe jar tag get archive entry string google name string format s s jar entry get name project get version file artifact entry get artifact delegate get upload google code feature upload artifact artifact google name type archive op sys all featured executable jar file execute with help gc user name gc password | uploads the project archive the jar with dependencies and the executable |
public string get project url return http code google com p protoj get version | the google code project url for proto j |
public void upload artifact standard project project string password archive feature archive project get archive feature upload google code feature upload project get upload google code feature classes archive classes archive get classes archive file jar classes get entry acme get archive entry get artifact upload upload artifact jar acme 1 0 jar featured acme project bob password | performs the actual upload to google code blocking until complete |
public void init config string name arg runnable classes archive config get entry name init config config | pass thru method to |
public void execute instruction instruction this instruction instruction this options parser parse instruction get opts split boolean execute body options has body if execute body project reporter reporter store get parent get dispatch feature get reporter reporter begin command get name body run else bootstrap run | executes this command using the given specified instruction that usually |
public string get browsable url return http code google com p protoj source browse get version | the browsable subversion url for the project |
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 parent 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 group id return org acme | the maven file references this property to avoid hard coding the project |
public string get download ur return http protoj googlecode com files | the googlecode download url for the project artifacts |
public string get version return 1 9 1 | the project version number |
public void init dir config this dirconf feature new dirconf feature this | this method must be called if configuration with properties files from a |
public void init classpath lib string name get entry name init classpath lib | call this method if the archive should be copied to the lib directory |
public string get project name return protoj get version | the name of the project that includes the version number |
public void execute execute sample project dist project create dist project execute dist project | the sample project gets executed right up until the dist command is |
public void init dir config file home this dirconf feature new dirconf feature this home | this method must be called if configuration with properties files from a |
private boolean is jdk6 string version system get property java specification version return version contains 6 | true if version 6 otherwise version 5 is assumed |
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 reject if excluded or javadoc sources jar 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 string get description string description if help resource null resource feature feature store get parent get resource feature description feature filter resource to string help resource else if help string null description help string else description no description provided return description | a description useful for help text |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.