Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/ant
/ functions
Functions
14,300 in github.com/apache/ant
⨍
Functions
14,300
◇
Types & classes
1,839
↓ 1,487 callers
Method
executeTarget
Executes a target we have set up @pre configureProject has been called @param targetName target to run
src/tests/junit/org/apache/tools/ant/BuildFileTest.java:349
↓ 927 callers
Method
getProject
@return Returns the {@link Project} in whose context the test is being executed. The {@code Project} is sometimes not available, like in the case wher
src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/TestExecutionContext.java:45
↓ 921 callers
Method
getProject
Gets the project @return the project instance.
src/main/org/apache/tools/ant/TypeAdapter.java:39
↓ 756 callers
Method
append
Append the contents of the other Path instance to this. @param other a <code>Path</code> to be added to the path
src/main/org/apache/tools/ant/types/Path.java:308
↓ 752 callers
Method
getProperty
Returns the value of a property if it is set. @param name name of the property. @return the property value, or null for no match or for name being nul
src/main/org/apache/tools/ant/property/GetProperty.java:30
↓ 735 callers
Method
add
add an arbitrary selector @param selector the selector to add @since Ant 1.6
src/main/org/apache/tools/ant/types/selectors/SelectorContainer.java:186
↓ 729 callers
Method
getName
@return Returns the name of the test
src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/confined/NamedTest.java:28
↓ 689 callers
Method
assertTrue
Pseudo-assert method.
src/main/org/apache/tools/ant/taskdefs/Sync.java:599
↓ 620 callers
Method
createArgument
Create an argument object. <p>Each commandline object has at most one instance of the argument class. This method calls <code>this.createArgument(fa
src/main/org/apache/tools/ant/types/Commandline.java:299
↓ 592 callers
Method
log
Log a message. @param msg the message to log
src/main/org/apache/tools/ant/taskdefs/XSLTLogger.java:30
↓ 573 callers
Method
isEmpty
Learn whether this {@link ResourceCollection} is empty. @return boolean
src/main/org/apache/tools/ant/types/ResourceCollection.java:57
↓ 544 callers
Method
log
Method for the loglistener to implement to receive log messages. @param message the message to log
src/main/org/apache/tools/ant/taskdefs/optional/ssh/LogListener.java:29
↓ 497 callers
Method
exists
()
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java:229
↓ 496 callers
Method
getAbsolutePath
()
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java:238
↓ 468 callers
Method
getLocation
Get the build file location associated with this element's task. @return the task's location instance.
src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java:250
↓ 459 callers
Method
setValue
Set the value of the parameter. @param value the parameter value
src/main/org/apache/tools/ant/taskdefs/optional/extension/ExtraAttribute.java:46
↓ 449 callers
Method
put
Saves a key-value-pair in the cache. @param key the key @param value the value
src/main/org/apache/tools/ant/types/selectors/modifiedselector/Cache.java:65
↓ 406 callers
Method
isReference
Has the refid attribute of this element been set? @return true if the refid attribute has been set
src/main/org/apache/tools/ant/types/DataType.java:74
↓ 399 callers
Method
length
()
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java:325
↓ 383 callers
Method
substring
(int begin)
src/main/org/apache/tools/ant/taskdefs/FixCRLF.java:657
↓ 345 callers
Method
getValue
Get the value for a file. @param file File object for which the value should be evaluated. @return The value for that file
src/main/org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.java:47
↓ 342 callers
Method
size
Learn the number of contained Resources. @return number of elements as int.
src/main/org/apache/tools/ant/types/ResourceCollection.java:31
↓ 258 callers
Method
get
Returns a value for a given key from the cache. @param key the key @return the stored value
src/main/org/apache/tools/ant/types/selectors/modifiedselector/Cache.java:58
↓ 215 callers
Method
equals
The equality method. This checks if the directory field is the same. @param obj the object to compare to @return true if this object has an equal dire
src/main/org/apache/tools/ant/taskdefs/optional/ssh/Directory.java:135
↓ 213 callers
Method
configureProject
Sets up to run the named project @param filename name of project file to run
src/tests/junit/org/apache/tools/ant/BuildFileTest.java:315
↓ 213 callers
Method
contains
(Object o)
src/main/org/apache/tools/ant/util/VectorSet.java:152
↓ 210 callers
Method
getLog
()
src/tests/junit/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapterTest.java:56
↓ 203 callers
Method
getFileUtils
Get the FileUtils for this task. @return the fileutils object.
src/main/org/apache/tools/ant/taskdefs/Copy.java:125
↓ 184 callers
Method
replace
Does replacement on text using the hashtable of keys. @param origString an input string @param keys mapping of keys to values @return the string
src/main/org/apache/tools/ant/taskdefs/KeySubst.java:168
↓ 180 callers
Method
stream
Return a {@link Stream} over this {@link ResourceCollection}. @return {@link Stream} of {@link Resource} @since Ant 1.10.2
src/main/org/apache/tools/ant/types/ResourceCollection.java:49
↓ 175 callers
Method
setProject
Sets the project @param p the project instance.
src/main/org/apache/tools/ant/TypeAdapter.java:32
↓ 174 callers
Method
format
Format a date/time into a specific pattern. @param date the date to format expressed in milliseconds. @param pattern the pattern to use to format the
src/main/org/apache/tools/ant/util/DateUtils.java:128
↓ 160 callers
Method
get
()
src/main/org/apache/tools/ant/Evaluable.java:32
↓ 154 callers
Method
indexOf
Override methods that use <code>.equals()</code> comparisons on elements. @param o the Object to search for. @param pos the position from which to s
src/main/org/apache/tools/ant/util/IdentityStack.java:85
↓ 151 callers
Method
equals
@see java.lang.Object#equals @param rhs the object to check for equality. @return true if the version, main and sections are the same.
src/main/org/apache/tools/ant/taskdefs/Manifest.java:1045
↓ 141 callers
Method
resolveFile
(String file)
src/tests/junit/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java:694
↓ 139 callers
Method
lastModified
()
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java:313
↓ 137 callers
Method
isFamily
Determines if the OS on which Ant is executing matches the given OS family. @param family the family to check for @return true if the OS matches @sinc
src/main/org/apache/tools/ant/taskdefs/condition/Os.java:195
↓ 131 callers
Method
endsWith
Checks that a string buffer ends up with a given string. It may sound trivial with the existing JDK API but the various implementation among JDKs can
src/main/org/apache/tools/ant/util/StringUtils.java:122
↓ 128 callers
Method
getBaseDir
Return the base directory of the project as a file object. @return the project base directory, or <code>null</code> if the base directory has
src/main/org/apache/tools/ant/Project.java:877
↓ 127 callers
Method
delete
Deletes the cache. If file based the file has to be deleted also.
src/main/org/apache/tools/ant/types/selectors/modifiedselector/Cache.java:45
↓ 127 callers
Method
getFileUtils
Method to retrieve The FileUtils, which is shared by all users of this method. @return an instance of FileUtils. @since Ant 1.6.3
src/main/org/apache/tools/ant/util/FileUtils.java:160
↓ 127 callers
Method
getOutputDir
()
src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java:97
↓ 123 callers
Method
isDirectory
()
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java:284
↓ 122 callers
Method
equals
Equality operation. @param other the object to compare to. @return true if the other object contains the same information as this object.
src/main/org/apache/tools/ant/Location.java:160
↓ 119 callers
Method
log
(String msg, int level)
src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskConfig.java:21
↓ 109 callers
Method
trim
A specialised trim() that trims whitespace, '(', ')', '"', '<', '>' from the start and end of strings
src/main/org/apache/tools/ant/taskdefs/email/EmailAddress.java:119
↓ 108 callers
Method
close
Close a Writer without throwing any exception if something went wrong. Do not attempt to close it if the argument is null. @param device output writer
src/main/org/apache/tools/ant/util/FileUtils.java:1644
↓ 104 callers
Method
getBytes
Get value as four bytes in big endian byte order. @since 1.1 @return value as four bytes in big endian order
src/main/org/apache/tools/zip/ZipLong.java:97
↓ 104 callers
Method
setChecked
Set the flag that is used to indicate that circular references have been checked. @param checked if true, if circular references have been checked
src/main/org/apache/tools/ant/types/DataType.java:326
↓ 103 callers
Method
getPath
Gets path from a <code>List</code> of <code>String</code>s. @param pathStack <code>List</code> of <code>String</code>s to be concatenated as a path.
src/main/org/apache/tools/ant/util/FileUtils.java:1861
↓ 100 callers
Method
toString
()
src/tests/junit/org/apache/tools/ant/taskdefs/dir2/A.java:37
↓ 99 callers
Method
getMessage
(SAXParseException e)
src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java:633
↓ 96 callers
Method
addElement
(E o)
src/main/org/apache/tools/ant/util/VectorSet.java:96
↓ 93 callers
Method
append
Append one enumeration to another. Elements are evaluated lazily. @param e1 the first enumeration. @param e2 the subsequent enumeration. @param <E> el
src/main/org/apache/tools/ant/util/CollectionUtils.java:155
↓ 93 callers
Method
getClassLoader
@return Returns the {@link ClassLoader} that has to be used for launching and execution of the tests
src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/confined/LaunchDefinition.java:56
↓ 90 callers
Method
noChildrenAllowed
Creates an exception that indicates that this XML element must not have child elements if the refid attribute is set. @return the exception to throw
src/main/org/apache/tools/ant/types/DataType.java:299
↓ 90 callers
Method
write
(final int b)
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java:320
↓ 87 callers
Method
getMessage
Handle getMessage() for exceptions. @param ex the exception to handle @return ex.getMessage() if ex.getMessage() is not null otherwise return
src/main/org/apache/tools/ant/taskdefs/Copy.java:1063
↓ 85 callers
Method
lastIndexOf
Override methods that use <code>.equals()</code> comparisons on elements. @param o the Object to search for. @param pos the position from which to s
src/main/org/apache/tools/ant/util/IdentityStack.java:103
↓ 85 callers
Method
tooManyAttributes
Creates an exception that indicates that refid has to be the only attribute if it is set. @return the exception to throw
src/main/org/apache/tools/ant/types/DataType.java:289
↓ 85 callers
Method
valueOf
Converts a string to a {@code ResolutionWarningReason} instance. @param s string to convert @return {@code ResolutionWarningReason} instance corresp
src/main/org/apache/tools/ant/taskdefs/modules/Jmod.java:930
↓ 84 callers
Method
list
Returns all path elements defined by this and nested path objects. @return list of path elements.
src/main/org/apache/tools/ant/types/Path.java:377
↓ 83 callers
Method
addElement
Adds a nested element definition. @param nestedElement the nested element definition.
src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java:227
↓ 82 callers
Method
setRefid
Makes this instance in effect a reference to another Path instance. <p>You must not set another attribute or nest elements inside this element if you
src/main/org/apache/tools/ant/types/Path.java:200
↓ 82 callers
Method
setValue
set the value to be tested; let ant eval it to true/false @param value the value to test
src/main/org/apache/tools/ant/taskdefs/condition/IsTrue.java:39
↓ 80 callers
Method
equals
()
src/tests/junit/org/apache/tools/ant/util/DeweyDecimalTest.java:108
↓ 80 callers
Method
newInstance
Create an instance of a class using the constructor matching the given arguments. @param <T> desired type @param ofClass Class<T> @param argType
src/main/org/apache/tools/ant/util/ReflectUtil.java:52
↓ 79 callers
Method
getPath
Get the path components of this directory. @return the path components as an array of strings.
src/main/org/apache/tools/ant/taskdefs/optional/ssh/Directory.java:162
↓ 79 callers
Method
readLine
Reads a line of text ending with '\n' (or until the end of the stream). The returned String retains the '\n'. @return the line read, or <code>null</c
src/main/org/apache/tools/ant/filters/BaseFilterReader.java:169
↓ 79 callers
Method
setProperty
(String property)
src/tutorial/tasks-filesets-properties/01-propertyaccess/src/Find.java:27
↓ 77 callers
Method
endsWith
Learn whether the last token equals the given string. @param s {@link String} @return {@code boolean}
src/main/org/apache/tools/ant/types/selectors/TokenizedPattern.java:176
↓ 77 callers
Method
toString
ByteArrayOutputStream#toString doesn't seem to work reliably on OS/390, at least not the way we use it in the execution context. @param bos the outpu
src/main/org/apache/tools/ant/taskdefs/Execute.java:241
↓ 76 callers
Method
addReference
Add a reference to the project. @param referenceName The name of the reference. Must not be <code>null</code>. @param value The value of the referenc
src/main/org/apache/tools/ant/Project.java:1986
↓ 76 callers
Method
getParentFile
This was originally an emulation of {@link File#getParentFile} for JDK 1.1, but it is now implemented using that method (Ant 1.6.3 onwards). @param f
src/main/org/apache/tools/ant/util/FileUtils.java:1142
↓ 73 callers
Method
setValue
Set the parameter value. Note that only string values are supported. No resolution of file paths is performed. @param value the parameter value.
src/main/org/apache/tools/ant/taskdefs/Javadoc.java:129
↓ 71 callers
Method
getBaseDir
Return the basedir to which the name is relative. @return the basedir as File.
src/main/org/apache/tools/ant/types/resources/FileResource.java:140
↓ 71 callers
Method
resolveFile
Correct a file path to correspond to the remote host requirements. This implementation currently assumes that the remote end can handle Unix-style pat
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java:1973
↓ 70 callers
Method
matches
Does the given argument match the pattern? @param argument the string to match against @return true if the pattern matches @throws BuildException on e
src/main/org/apache/tools/ant/util/regexp/RegexpMatcher.java:73
↓ 70 callers
Method
toBoolean
Return the boolean equivalent of a string, which is considered <code>true</code> if either <code>"on"</code>, <code>"true"</code>, or <code>"yes"</cod
src/main/org/apache/tools/ant/Project.java:1731
↓ 69 callers
Method
setValue
(FlexInteger value)
src/tests/junit/org/apache/tools/ant/types/FlexIntegerTest.java:59
↓ 68 callers
Method
setBasedir
Sets the base directory to be scanned. This is the directory which is scanned recursively. All '/' and '\' characters should be replaced by <code>File
src/main/org/apache/tools/ant/FileScanner.java:119
↓ 67 callers
Method
nextToken
Returns the next path element from this tokenizer. @return the next path element from this tokenizer. @exception NoSuchElementException if there are
src/main/org/apache/tools/ant/PathTokenizer.java:97
↓ 65 callers
Method
normalize
"Normalize" the given absolute path. <p>This includes: <ul> <li>Uppercase the drive letter if there is one.</li> <li>Remove redundant s
src/main/org/apache/tools/ant/util/FileUtils.java:776
↓ 65 callers
Method
setNewProperty
Set a property if no value currently exists. If the property exists already, a message is logged and the method returns with no other effect. @param
src/main/org/apache/tools/ant/Project.java:553
↓ 64 callers
Method
createPath
Path of files to concatenate. @return the path used for concatenating @since Ant 1.6
src/main/org/apache/tools/ant/taskdefs/Concat.java:730
↓ 64 callers
Method
filter
filter and/of modify a string @param string the string to filter @return the modified string or null if the string did not pass the filter
src/main/org/apache/tools/ant/filters/TokenFilter.java:56
↓ 64 callers
Method
iterator
Returns an iterator over the keys in the cache. @return An iterator over the keys.
src/main/org/apache/tools/ant/types/selectors/modifiedselector/Cache.java:71
↓ 63 callers
Method
newOutputStream
Opens a new OutputStream for the given Path. @param path the path of the file @param append whether to append to or a replace an existing file @return
src/main/org/apache/tools/ant/util/FileUtils.java:1910
↓ 63 callers
Method
setIncludes
Sets the list of include patterns to use. @param includes A list of include patterns. May be <code>null</code>, indicating that all f
src/main/org/apache/tools/ant/FileScanner.java:149
↓ 61 callers
Method
equals
Implement basic Resource equality. @param other the object to check against. @return true if the specified Object is equal to this Resource. @since An
src/main/org/apache/tools/ant/types/Resource.java:289
↓ 61 callers
Method
scan
Scans the base directory for files which match at least one include pattern and don't match any exclude patterns. @exception IllegalStateException if
src/main/org/apache/tools/ant/FileScanner.java:108
↓ 59 callers
Method
as
Returns a view of this resource that implements the interface given as the argument or null if there is no such view. <p>This allows extension interf
src/main/org/apache/tools/ant/types/Resource.java:437
↓ 59 callers
Method
start
Start handling of the streams. @throws IOException on error
src/main/org/apache/tools/ant/taskdefs/ExecuteStreamHandler.java:62
↓ 58 callers
Method
getProperty
Return the value of a property, if it is set. @param propertyName The name of the property. May be <code>null</code>, in which case
src/main/org/apache/tools/ant/Project.java:607
↓ 58 callers
Method
getReference
Look up a reference by its key (ID). @param <T> desired type @param key The key for the desired reference. Must not be <code>null</code>.
src/main/org/apache/tools/ant/Project.java:2050
↓ 58 callers
Method
setExecutable
Set the executable to run. All file separators in the string are converted to the platform specific value. @param executable the String executable nam
src/main/org/apache/tools/ant/types/Commandline.java:328
↓ 58 callers
Method
testSource
(String expectedSource, String javaVersion, String expectedLog, String configuredT
src/tests/junit/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapterTest.java:586
↓ 57 callers
Method
getFile
Get the file represented by this Resource. @return the file.
src/main/org/apache/tools/ant/types/resources/FileProvider.java:35
↓ 57 callers
Method
isAtLeastJavaVersion
Compares the current Java version to the passed in String - assumes the argument is one of the constants defined in this class. Note that Ant now requ
src/main/org/apache/tools/ant/util/JavaEnvUtils.java:297
next →
1–100 of 14,300, ranked by callers