input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void init javac source string source get javac task set source source | delegates to the underlying ant task and additionally will allow an |
public void init ajc source string source get ajc task set source source | delegates to the underlying ant task and additionally will allow an |
public void init ajc memory string memory get ajc task set maxmem memory | delegates to the underlying ant task and additionally will allow an |
public boolean is javadoc jar string name return name ends with jar name contains get layout get javadoc postfix | returns whether or not the given jar name represents a valid javadoc jar |
public void init javac memory string memory get javac task set memory maximum size memory | delegates to the underlying ant task and additionally will allow an |
public scp get ant scp return scp | the underlying scp ant object for fine grained customization |
public ajc task get ajc task return ajc task | the ant wrapper used to carry out aspectj compilation |
public boolean is sources jar string name return name ends with jar name contains get layout get source postfix name contains get layout get src postfix | returns whether or not the given jar name represents a valid sources jar |
public javac get javac task return javac task | the ant wrapper used to carry out javac compilation |
public project layout get layout return get parent get layout | the parent layout for convenient access |
public javadoc get current javadoc return current javadoc | the ant task responsible for creating the javadocs during the call to |
public void compile ajc string includes string excludes copy resources null null ajc task create ajc task dir set dir set add source dir ajc task if includes null dir set set includes includes if excludes null dir set set excludes excludes if config null config run this try ajc task execute catch build exception e throw new information exception there was a problem compiling the source code | invokes the aspectj compiler |
public void compile javac string includes string excludes copy resources null null javac task create javac task dir set dir set add source dir javac task if includes null dir set set includes includes if excludes null dir set set excludes excludes if config null config run this try javac task execute catch build exception e throw new information exception there was a problem compiling the source code | invokes the javac compiler |
public file get working dir if working dir null working dir new file get parent get layout get archive dir javadoc archive working dir mkdirs return working dir | used to create the javadoc files before archiving |
public tar get tar return tar | the underlying ant object which can be used for further customization |
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 get parent get archive feature 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 ajc task create ajc task project layout layout get parent get layout ajc task ajc get parent get ant feature add task new ajc task ajc set task name ajc ajc set fork true ajc set destdir layout get classes dir ajc set failonerror true new ajc task wrapper ajc add classpath layout get classpath config return ajc | creates the ajc compile implementation instance |
public dir set add source dir ajc task ajc return new ajc task wrapper ajc add source dir get parent get layout get java dir | adds the source directory to the ajc task |
public javac create javac task project layout layout get parent get layout javac javac get parent get ant feature add task new javac javac set task name compile javac set fork true javac set destdir layout get classes dir new javac wrapper javac add classpath layout get classpath config return javac | creates the javac compile implementation instance |
public void create archive string name project layout layout get parent 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 get jar 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 |
public dir set add source dir javac javac return new javac wrapper javac add source dir get parent get layout get java dir | adds the source directory to the javac task |
public void copy resources string includes string excludes project layout layout get parent get layout layout get classes dir mkdirs copy copy get parent get ant feature add task new 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 copy execute | copies the files in the resources directory into the classes directory |
public void init executable jar string current main class get parent get current main class init executable jar current main class | convenience method that delegates to |
private void add null appender logger logger logger get root logger boolean not initialized logger get all appenders instanceof null enumeration if not initialized logger add appender new null appender | ensures the root logger has at least one appender registered |
private void add file appender string name protoj file appender final appender appender new rolling file appender new pattern layout d hh mm ss sss t m n log file path appender set name name synchronized this visit loggers new arg runnable logger public void run logger logger logger add appender appender | adds a new rolling file appender to the loggers |
public void set level final level level synchronized this visit loggers new arg runnable logger public void run logger logger logger set level level | convenience method that changes the logging level used by the loggers |
public logger get proto logger return logger get logger get class get name | returns the logger used to log most project messages |
public logger get ant logger return logger get logger log4j listener log ant | returns the logger with the name code log4j listener |
public logger get aspectj logger return logger get logger org aspectj tools ant | the logger responsible for aspectj compilation messages |
public void visit loggers arg runnable logger closure closure run get ant logger closure run get aspectj logger closure run get proto logger | useful for applying identical configuration to all managed loggers |
public void launch beanshell string command project layout layout get parent get layout file script new file layout get bin dir run bsh interpreter interpreter new interpreter interpreter get name space import object this interpreter get name space import package protoj lang interpreter get name space import package protoj lang ant interpreter set project get parent interpreter set command command interpreter source script get absolute path | launches the specified command in a bean shell script with path |
public void copy resources string includes string excludes file resources dir get parent get layout get resources dir if resources dir exists get parent get compile feature copy resources includes excludes | copies the files in the resources directory into the classes directory if |
public void javac arg runnable javac config compile feature feature get parent get compile feature file src dir get parent get layout get src dir if src dir exists javac task feature create javac task config run task try task execute catch build exception e throw new information exception there was a problem compiling the source code | executes the javac compiler tool |
public void ajc arg runnable ajc task config compile feature feature get parent get compile feature file src dir get parent get layout get src dir if src dir exists feature copy resources null aop xml ajc task task feature create ajc task config run task try task execute catch build exception e throw new information exception there was a problem compiling the source code | executes the ajc compiler tool |
public void java arg runnable java config string command java java get parent get ant feature add task new java config run java get parent get runner standard launch java false null command split | executes the specified command in a new vm |
public dir set add source dir javac javac return get parent get compile feature add source dir javac | adds the project source directory to the specified task |
public dir set add source dir ajc task ajc return get parent get compile feature add source dir ajc | adds the project source directory to the specified task |
public string get name return name get | the unique name for this configuration instance |
public machine config get machine string name machine config config machines get get name if config null machine config new value new machine config name another thread may have just added after our null check machine config old value machines get put if absent name new value config old value null old value new value return config | returns the machine configuration with the given name creating it if it |
public standard commands create standard project parent get parent this compile new compile command parent this beanshell new beanshell command parent this retrieve new retrieve command parent this help new help command parent this clean new clean command parent this publish new publish command parent this version new version command parent this junit new junit command parent this archive new archive command parent this tar new tar command parent this verify tar new verify tar command parent this scp new scp command parent this dirconf new dirconf command parent this scpconf new scpconf command parent return this | create an instance with the owning parent project |
private file get properties file file dir project layout layout parent get layout string properties name layout get properties file get name string conf dir name layout get conf dir get name file dest conf dir new file dir conf dir name file dest properties file new file dest conf dir properties name return dest properties file | calculates the path of the single parent properties file relative to the |
public void update from script string path interpreter interpreter input stream stream get class get resource as stream path try if stream null reader reader new input stream reader stream interpreter eval reader finally ioutils close quietly stream | executes the beanshell script at the given classpath resource if present |
public beanshell command get beanshell return beanshell | use this command to delegate to a beanshell script that is in return |
private void merge properties to dir file profile dir file dest dir list file profile files get conf properties profile dir for file profile file profile files string relative path get relative path profile dir profile file file project file new file parent get layout get root dir relative path merge files to dir profile file project file dest dir | all the properties from the profile conf directory need to override their |
public composite configuration get configuration file conf dir parent get layout get conf dir final composite configuration combo new composite configuration conf dir list files new filename filter public boolean accept file dir string name if name ends with properties file file new file dir name combo add configuration new properties configuration file return true combo add configuration new system configuration return combo | the helper that is configured to look for property values first from any |
public void init relative dir file relative dir this relative dir relative dir | this must be called in order to subsequently call |
public void init relative url string relative url this relative url relative url | this must be called in order to subsequently call |
private file recreate dir string dir name file dir new file parent get layout get target dir dir name file utils delete directory dir dir mkdirs return dir | deletes and creates the specified directory name under the project target |
public void relative local overlay string name boolean interpolate if get relative dir null throw new runtime exception no local home directory configured local overlay new file get relative dir name interpolate | overlays the profile with the given directory name |
public void relative local clean string name if get relative dir null throw new runtime exception no local home directory configured local clean new file get relative dir name | cleans the profile with the given directory name |
public void relative remote clean string name file keyfile string passtext if get relative url null throw new runtime exception no remote home url configured remote clean get relative url name keyfile passtext | cleans the profile with the given directory name |
public void remote clean string profile url file keyfile string passtext transfer profile profile url keyfile passtext local clean get working dir | simple strategy that deletes the files mirroring the profile directory |
public void local clean file profile dir project layout layout get parent get layout file project root dir layout get root dir get all the resource under the profile root directory final list file profile resources new array list file list files profile dir profile resources delete the matching resource under the parent directory for file profile resource profile resources string relative path get relative path profile dir profile resource file project resource new file project root dir relative path project resource delete delete the special all properties file just in case interpolated layout get properties file delete | removes all files in the parent directory that match the paths in the |
public void update from script string path input stream stream get class get resource as stream path try if stream null reader reader new input stream reader stream get interpreter eval reader finally ioutils close quietly stream | executes the beanshell script at the given classpath resource if present |
public configuration get configuration return configuration get | the helper that is configured to look for property values first from any |
public interpreter get interpreter return interpreter get | gets the beanshell interpreter creating it if it doesnt exist |
private file get working properties file project layout layout get 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 |
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 get 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 |
private file get working dir return working dir | local temp storage |
public string create line string builder builder new string builder for string arg args builder append arg builder append return builder to string trim | returns a textual representation of this instruction suitable for the |
public string get command name return args 0 | the name of the command represented by this instruction |
public void init load time weaving dependency store store get parent get dependency store file weaver jar store get aspectjweaver get jar file new java wrapper get java init load time weaving weaver jar | convenience method for configuring load time weaving on the main vm |
public void execute string args if args length 0 instruction instruction new instruction args if launch main instruction string command name instruction get command name command store command store get parent get command store command command command store get command command name if command null command execute instruction else already at project vm so the command is confirmed unknown string builder reason new string builder reason append the following instruction isn t recognized reason append instruction create line reason append throw new information exception reason to string | executes the specified command args |
public void init load time weaving dependency store store parent get parent get dependency store file weaver jar store get aspectjweaver get jar file new java wrapper get java init load time weaving weaver jar | convenience method for configuring this command for load time weaving |
private boolean can relaunch main return java null get parent get current main class equals main classname | returns true if |
public string get main classname return main classname | the entry point to the new vm to be relaunched |
public void execute instruction instruction this current instruction instruction this options parser parse instruction create opts if options has body do execute body else do execute vm | executes this command using the specified instruction that usually |
private void do execute vm standard project project parent get parent logger logger project get logger logger info launching command in a new virtual machine get name command runner runner project get runner string opts current instruction create appended args body boolean spawn options has bg runner standard launch get java spawn main class opts | launches this command in a new vm |
private void do execute body standard project project parent get parent logger logger project get logger logger info executing body for get name project reporter reporter project get reporter reporter before start this try body run reporter after success this catch runtime exception e reporter after failure this e throw e | directly executes the command body |
public string get description string description if help resource null resource feature feature parent 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 |
public command store get store return parent | a reference to the owning store |
public instruction get current instruction return current instruction | the currently executing instruction |
public void throw bad options exception string hint string builder builder new string builder builder append the following command contained unrecognized options ignore any body switch n n builder append current instruction create line boolean is hint specified hint null hint length 0 if is hint specified builder append builder append hint builder append n n please review the command help as follows n builder append get help text throw new information exception builder to string | throws an information exception with standardized error information |
public velocity context get context if context null context new velocity context get context put project get parent get context put layout get parent get layout get context put d return context | this is the single velocity context that is merged with all templates |
public boolean is missing class return missing class | whether or not the vm failed to start because of a missing class |
public target create target string name target target new target target set name name project project new project project set name project project init project add target target project add build listener new log4j listener target set project project return target | constructs by creating an underlying target with the specified name and |
public target add tasks string target name task tasks return add tasks create target target name tasks | adds the specified tasks to a newly created target with the specified |
public void init fork boolean spawn get java set fork true get java set spawn spawn if spawn get java set outputproperty protoj stdout get java set error property protoj stderr get java set result property protoj result | invoke this method if the virtual machine should fork |
public target add tasks target target task tasks for task task tasks task set project target get project task set owning target target target add task task return target | adds the specified tasks to the specified target |
public void init args list string args for string value args argument arg get java create arg arg set value value | invoke if any arguments to main are required |
public void init jvmargs list string jvmargs for string value jvmargs argument jvmarg get java create jvmarg jvmarg set value value | invoke if any virtual machine arguments are required |
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 delete dest create new file file writer writer new file writer dest t merge get context writer writer close | copies the specified resource to the specified dest |
public void init debug int port boolean suspend string debug suspend suspend y n argument jvmarg get java create jvmarg jvmarg set line xdebug xrunjdwp transport dt socket address port server y suspend debug suspend | invoke if debugging is required |
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 get context writer writer close return writer to string | copies the specified resource to a returned string |
public void init load time weaving file weaver jar argument jvmarg get java create jvmarg jvmarg set value javaagent weaver jar get absolute path | invoke if loadtime weaving is required |
public void init local jmx argument jvmarg get java 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 get java create jvmarg jvmarg set value dcom sun management jmxremote port port | invoke if remote jmx connectivity is required |
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 get 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 string get stdout return get java get owning target get project get property protoj stdout | the contents of the stdout property after execution if any |
public string get stderr return get java get owning target get project get property protoj stderr | the contents of the stderr property after execution if any |
public string get result return get java get owning target get project get property protoj result | the contents of the result property after execution if any |
public void log output logger logger string system out get stdout if system out null system out length 0 logger info system out string system err get stderr if system err null system err length 0 logger error system out | logs the task results if any to the specified logger |
public void throw on error if is success throw new start vm exception this | call this method after |
public void init version info string version info this version info version info | accepts any information to be reported by |
public untar get untar return untar | a reference to the underlying ant task |
public dir set create package set file src dir dir set package set new dir set package set set dir src dir javadoc add packageset package set return package set | adds a new package set to the unederlying ant task |
public void report application help resource feature feature get parent get resource feature string resource path protoj common language english application 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 |
public void report version if version info null system out println version info | reports version information to stdout |
public void init debug int port boolean suspend string debug suspend suspend y n int 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 init jvmargs list string jvmargs for string value jvmargs argument jvmarg junit create jvmarg jvmarg set value value | invoke if any virtual machine arguments are required |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.