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
↓ 57 callers
Method
print
Prints the message onto an output stream @param ps The print stream to write to @throws IOException if an error occurs
src/main/org/apache/tools/ant/taskdefs/email/Message.java:112
↓ 57 callers
Method
toString
This String-Representation can directly be used for instantiation of the JUnit testcase. @return the string representation. @see java.lang.Object#toSt
src/main/org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.java:364
↓ 56 callers
Method
getDirectoryScanner
Returns the directory scanner needed to access the files to process. @param baseDir the base directory to use with the fileset @return a directory sca
src/main/org/apache/tools/ant/taskdefs/MatchingTask.java:192
↓ 56 callers
Method
hasMoreTokens
Tests if there are more path elements available from this tokenizer's path. If this method returns <code>true</code>, then a subsequent call to nextTo
src/main/org/apache/tools/ant/PathTokenizer.java:85
↓ 56 callers
Method
of
Determines the file type of a {@link Path}. @param p Path @return FileType @throws IOException if file attributes cannot be read
src/main/org/apache/tools/ant/util/PermissionUtils.java:293
↓ 55 callers
Method
createTempFile
Create a File object for a temporary file in a given directory. Without actually creating the file. <p> The file denoted by the returned abstract pat
src/main/org/apache/tools/ant/util/FileUtils.java:939
↓ 55 callers
Method
selectionString
This is a helper method that takes a selector and calls its isSelected() method on each file in the testbed. It returns a string of "T"s amd "F"s @pa
src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorRule.java:92
↓ 54 callers
Method
getCheckedRef
Performs the check for circular references and returns the referenced object. @param <T> required reference type @return the dereferenced object. @thr
src/main/org/apache/tools/ant/types/DataType.java:205
↓ 54 callers
Method
getFileContents
Reads the contents of a file into a String. @param project the project containing the base directory the file is in. @param fileName the path to the f
src/tests/junit/org/apache/tools/ant/FileUtilities.java:39
↓ 53 callers
Method
getMessage
Returns the logging message. This field will only be set for "messageLogged" events. @return the message associated with this event, or <code>null</c
src/main/org/apache/tools/ant/BuildEvent.java:170
↓ 53 callers
Method
toString
Return a String representation of this object. @return string representation of object.
src/main/org/apache/tools/ant/taskdefs/optional/extension/Extension.java:478
↓ 52 callers
Method
createArg
Add a command-line argument. @return created argument.
src/main/org/apache/tools/ant/taskdefs/Java.java:458
↓ 52 callers
Method
invoke
Call a method on the object with no parameters. @param <T> desired type @param obj the object to invoke the method on. @param methodName the name of
src/main/org/apache/tools/ant/util/ReflectUtil.java:71
↓ 52 callers
Method
list
()
src/tests/junit/org/apache/tools/ant/PickOneTask.java:24
↓ 51 callers
Method
toString
Returns a textual representation of the path, which can be used as CLASSPATH or PATH environment variable definition. @return a textual representation
src/main/org/apache/tools/ant/types/Path.java:390
↓ 50 callers
Method
getProject
Get the current project. @return the current ant project.
src/main/org/apache/tools/ant/property/ParseNextProperty.java:34
↓ 50 callers
Method
join
Joins the string representation of the elements of a collection to a joined string with a given separator. @param collection Collection of the data to
src/main/org/apache/tools/ant/util/StringUtils.java:284
↓ 49 callers
Method
containsKey
Check if the table contains a particular key. @param value the key to look for. @return true if the table contains key.
src/main/org/apache/tools/ant/util/LazyHashtable.java:96
↓ 49 callers
Method
getCommandLine
Accessor to the command line. @return the current command line. @since 1.6.3
src/main/org/apache/tools/ant/taskdefs/Java.java:1065
↓ 48 callers
Method
flush
()
src/main/org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.java:385
↓ 48 callers
Method
mkdirs
Attempt to fix possible race condition when creating directories on WinXP. If the mkdirs does not work, wait a little and try again.
src/main/org/apache/tools/ant/taskdefs/Mkdir.java:103
↓ 47 callers
Method
addAll
Add the Collection of ResourceCollections to the container. @param c the Collection whose elements to add. @throws BuildException on error.
src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java:120
↓ 47 callers
Method
toString
Returns the name of this target. @return the name of this target, or <code>null</code> if the name has not been set yet.
src/main/org/apache/tools/ant/Target.java:406
↓ 46 callers
Method
equals
(Object obj)
src/main/org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.java:381
↓ 46 callers
Method
mapFileName
Returns an array containing the target filename(s) for the given source file. <p>if the given rule doesn't apply to the source file, implementation m
src/main/org/apache/tools/ant/util/FileNameMapper.java:61
↓ 45 callers
Method
getFullLog
Gets the log the BuildFileTest object. Only valid if configureProject() has been called. @pre fullLogBuffer!=null @return The log value
src/tests/junit/org/apache/tools/ant/BuildFileTest.java:255
↓ 45 callers
Method
setAttribute
(boolean b)
src/tests/junit/org/apache/tools/ant/taskdefs/PreSetDefTest.java:127
↓ 45 callers
Method
write
(int b)
src/main/org/apache/tools/ant/taskdefs/Execute.java:507
↓ 44 callers
Method
isSelected
Method that each selector will implement to create their selection behaviour. If there is a problem with the setup of a selector, it can throw a Build
src/main/org/apache/tools/ant/types/selectors/FileSelector.java:47
↓ 44 callers
Method
setError
Allows all selectors to indicate a setup error. Note that only the first error message is recorded. @param msg The error message any BuildException s
src/main/org/apache/tools/ant/types/selectors/BaseSelector.java:45
↓ 43 callers
Method
getIncludedFiles
Return the names of the files which matched at least one of the include patterns and none of the exclude patterns. The names are relative to the base
src/main/org/apache/tools/ant/DirectoryScanner.java:1534
↓ 43 callers
Method
getMethod
The compression method that has been used. @return int @since Ant 1.8.0
src/main/org/apache/tools/ant/types/resources/ZipResource.java:172
↓ 43 callers
Method
getPropertyHelper
Factory method to create a property processor. Users can provide their own or replace it using "ant.PropertyHelper" reference. User tasks can also add
src/main/org/apache/tools/ant/PropertyHelper.java:393
↓ 43 callers
Method
joining
(CharSequence separator)
src/main/org/apache/tools/ant/util/StringUtils.java:306
↓ 42 callers
Method
encode
Encode a filename or a comment to a byte array suitable for storing it to a serialized zip entry. <p>Examples for CP 437 (in pseudo-notation, right h
src/main/org/apache/tools/zip/ZipEncoding.java:76
↓ 42 callers
Method
isLeadingPath
Learn whether one path "leads" another. <p>This method uses {@link #normalize} under the covers and does not resolve symbolic links or Windows juncti
src/main/org/apache/tools/ant/util/FileUtils.java:1300
↓ 42 callers
Method
printStackTrace
(PrintWriter w)
src/tests/junit/org/apache/tools/ant/DefaultLoggerTest.java:52
↓ 42 callers
Method
setPattern
Set the regexp pattern from the String description. @param pattern the pattern to match @throws BuildException on error
src/main/org/apache/tools/ant/util/regexp/RegexpMatcher.java:58
↓ 41 callers
Method
getOutput
()
src/tests/junit/org/apache/tools/ant/BuildFileTest.java:287
↓ 40 callers
Method
getKey
Get the attribute's Key - its name in lower case. @return the attribute's key.
src/main/org/apache/tools/ant/taskdefs/Manifest.java:243
↓ 40 callers
Method
keySet
()
src/main/org/apache/tools/ant/util/LinkedHashtable.java:116
↓ 40 callers
Method
resolve
Attempt to locate File that satisfies extension via resolver. @param extension the extension @param project the Ant project instance @return the File
src/main/org/apache/tools/ant/taskdefs/optional/extension/ExtensionResolver.java:41
↓ 40 callers
Method
write
Writes a DOM tree to a stream in UTF8 encoding. Note that it prepends the <?xml version='1.0' encoding='UTF-8'?> if the xmlDeclaration field is
src/main/org/apache/tools/ant/util/DOMElementWriter.java:173
↓ 39 callers
Method
getProperties
@return Returns the properties that were used for the execution of the test
src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/TestExecutionContext.java:36
↓ 39 callers
Method
getTarget
Gets the target VM that the classes will be compiled for. @return the target VM
src/main/org/apache/tools/ant/taskdefs/Javac.java:767
↓ 39 callers
Method
getTaskName
Returns the name to use in logging messages. @return the name to use in logging messages. @since Ant 1.7
src/main/org/apache/tools/ant/taskdefs/condition/ConditionBase.java:103
↓ 39 callers
Method
verifyImageBuiltNormally
()
src/tests/junit/org/apache/tools/ant/taskdefs/modules/LinkTest.java:104
↓ 39 callers
Method
writeAttribute
(final XMLStreamWriter writer, final String name, final String value)
src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java:383
↓ 38 callers
Method
checkAttributesAllowed
check that it is ok to set attributes, i.e that no reference is defined @since Ant 1.6 @throws BuildException if not allowed
src/main/org/apache/tools/ant/types/DataType.java:343
↓ 38 callers
Method
isExists
The exists attribute tells whether a resource exists. @return true if this resource exists.
src/main/org/apache/tools/ant/types/Resource.java:161
↓ 38 callers
Method
load
Loads the cache, must handle not existing cache.
src/main/org/apache/tools/ant/types/selectors/modifiedselector/Cache.java:48
↓ 38 callers
Method
localize
adapt file separators to local conventions
src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java:977
↓ 38 callers
Method
next
Fulfill the Iterator contract. @return the next element. @throws NoSuchElementException if no more elements.
src/main/org/apache/tools/ant/types/resources/FailFast.java:107
↓ 37 callers
Method
run
Run the test.
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskMirror.java:133
↓ 37 callers
Method
set
Set a property. <p>May replace the value of an existing property.</p> @param property the property's String "identifier". @param value the value
src/main/org/apache/tools/ant/PropertyHelper.java:160
↓ 36 callers
Method
equals
true if the original paths are equal. @return boolean
src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java:165
↓ 36 callers
Method
getClasspath
The CLASSPATH this rmic process will use. @return the classpath this rmic process will use
src/main/org/apache/tools/ant/taskdefs/rmic/RmicAdapter.java:66
↓ 36 callers
Method
isDirectory
Tells if the resource is a directory. @return boolean flag indicating if the resource is a directory.
src/main/org/apache/tools/ant/types/Resource.java:212
↓ 36 callers
Method
pushAndInvokeCircularReferenceCheck
Allow DataTypes outside org.apache.tools.ant.types to indirectly call dieOnCircularReference on nested DataTypes. <p>Pushes dt on the stack, runs die
src/main/org/apache/tools/ant/types/DataType.java:188
↓ 35 callers
Method
getLocation
Get the location of this target's definition. @return <code>Location</code> @since 1.6.2
src/main/org/apache/tools/ant/Target.java:128
↓ 35 callers
Method
setUserProperty
Set a user property, which cannot be overwritten by set/unset property calls. Any previous value is overwritten. @param name The name of property to s
src/main/org/apache/tools/ant/Project.java:566
↓ 35 callers
Method
setValue
The string that should replace the token during filtered copies. @param value token replace value
src/main/org/apache/tools/ant/taskdefs/Filter.java:54
↓ 34 callers
Method
createElement
Creates a named nested element. Depending on the results of the initial introspection, either a method in the given parent instance or a simple no-arg
src/main/org/apache/tools/ant/IntrospectionHelper.java:621
↓ 34 callers
Method
equals
Please use Vector.equals() or List.equals(). @param v1 the first vector. @param v2 the second vector. @return true if the vectors are equal. @since An
src/main/org/apache/tools/ant/util/CollectionUtils.java:54
↓ 34 callers
Method
getCommandline
Get the command line used to run the tests. @return the command line. @since Ant 1.6.2
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java:2015
↓ 34 callers
Method
getConfig
Get the basename terminator. @return an ejbjar task configuration
src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java:174
↓ 33 callers
Method
clear
()
src/main/org/apache/tools/ant/taskdefs/VerifyJar.java:214
↓ 33 callers
Method
createClassLoader
Creates and configures an AntClassLoader instance from the nested classpath element. @since Ant 1.6
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java:1944
↓ 33 callers
Method
isDirectory
()
src/tests/junit/org/apache/tools/ant/taskdefs/ZipExtraFieldTest.java:70
↓ 33 callers
Method
wasTestRun
(final Path trackerFile, final String className)
src/tests/junit/org/example/junitlauncher/Tracker.java:135
↓ 33 callers
Method
write
(int b)
src/tests/junit/org/apache/tools/ant/BuildFileTest.java:530
↓ 32 callers
Method
createArg
Adds a command-line argument. @return new command line argument created.
src/main/org/apache/tools/ant/taskdefs/ExecTask.java:327
↓ 32 callers
Method
equals
Equality depending in the index. @param other the object to test equality against. @return true if the object has the same index as this.
src/main/org/apache/tools/ant/filters/FixCrLfFilter.java:959
↓ 32 callers
Method
getIndex
@return the index of the selected value in the array. @see #getValues()
src/main/org/apache/tools/ant/types/EnumeratedAttribute.java:140
↓ 32 callers
Method
getResolvedPath
Tries to get the canonical path of a file resolving symbolic links or Windows junctions. <p>On any platform other than Windows this simply invokes {@
src/main/org/apache/tools/ant/util/FileUtils.java:2022
↓ 32 callers
Method
getResource
Query a resource (file, zipentry, ...) by name @param name relative path of the resource about which information is sought. Expects "/" to
src/main/org/apache/tools/ant/types/ResourceFactory.java:37
↓ 32 callers
Method
isFilesystemOnly
Indicate whether this ResourceCollection is composed entirely of Resources accessible via local filesystem conventions. If true, all resources returne
src/main/org/apache/tools/ant/types/ResourceCollection.java:42
↓ 32 callers
Method
parse
Parse a line into name and value pairs @param line the line to be parsed @throws ManifestException if the line does not contain a colon separating t
src/main/org/apache/tools/ant/taskdefs/Manifest.java:210
↓ 32 callers
Method
readFully
Read from reader till EOF. @param rdr the reader from which to read. @return the contents read out of the given reader. @throws IOException if the co
src/main/org/apache/tools/ant/util/FileUtils.java:1155
↓ 32 callers
Method
setCommandline
Sets the commandline of the subprocess to launch. @param commandline the commandline of the subprocess to launch.
src/main/org/apache/tools/ant/taskdefs/Execute.java:319
↓ 32 callers
Method
toURI
Constructs a <code>file:</code> URI that represents the external form of the given pathname. <p>Will be an absolute URI if the given path is absolute
src/main/org/apache/tools/ant/util/FileUtils.java:1365
↓ 31 callers
Method
getAttributeValue
Get the value of the attribute with the name given. @param attributeName the name of the attribute to be returned. @return the attribute's value or
src/main/org/apache/tools/ant/taskdefs/Manifest.java:589
↓ 31 callers
Method
getFilenames
()
src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorRule.java:80
↓ 31 callers
Method
push
(char c)
src/main/org/apache/tools/ant/filters/FixCrLfFilter.java:412
↓ 31 callers
Method
setAttribute
Set a custom attribute for the JAXP factory implementation. @param name the attribute name. @param value the value of the attribute, usually a boolean
src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java:449
↓ 30 callers
Method
close
()
src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/TestRequest.java:93
↓ 30 callers
Method
getCommandline
(int timetorun)
src/tests/junit/org/apache/tools/ant/taskdefs/ExecuteJavaTest.java:58
↓ 30 callers
Method
getFiles
()
src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorRule.java:76
↓ 30 callers
Method
getTaskType
Return the type of task. @return the type of task.
src/main/org/apache/tools/ant/Task.java:443
↓ 30 callers
Method
isFailure
Checks whether <code>exitValue</code> signals a failure on the current system (OS specific). <p><b>Note</b> that this method relies on the convention
src/main/org/apache/tools/ant/taskdefs/Execute.java:571
↓ 30 callers
Method
runJmod
(final String... args)
src/tests/junit/org/apache/tools/ant/taskdefs/modules/JmodTest.java:636
↓ 29 callers
Method
concatSystemClasspath
Concatenates the system class path in the order specified by the ${build.sysclasspath} property - using "last" as default value. @return the
src/main/org/apache/tools/ant/types/Path.java:524
↓ 29 callers
Method
getFileTimestampGranularity
Get the granularity of file timestamps. The choice is made based on OS, which is incorrect--it should really be by filesystem. We do not have an easy
src/main/org/apache/tools/ant/util/FileUtils.java:1530
↓ 29 callers
Method
getLength
Get the number of nodes in the list. @return the length of the list.
src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java:96
↓ 29 callers
Method
getTask
Get the task for this tool. @return the Task instance this tool is associated with.
src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java:165
↓ 29 callers
Method
isChecked
The flag that is used to indicate that circular references have been checked. @return true if circular references have been checked
src/main/org/apache/tools/ant/types/DataType.java:318
↓ 29 callers
Method
iterator
()
src/main/org/apache/tools/ant/taskdefs/optional/depend/ClassFileIterator.java:36
↓ 29 callers
Method
lastDelimiterPosition
(StringBuffer buf, String currentLine)
src/main/org/apache/tools/ant/taskdefs/SQLExec.java:1070
↓ 29 callers
Method
listFiles
list the files present in one directory. @param directory full path on the remote side @param changedir if true change to directory directory before l
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java:681
↓ 29 callers
Method
replace
Replace occurrences into a string. @param data the string to replace occurrences into @param from the occurrence to replace. @param to the occurrence
src/main/org/apache/tools/ant/util/StringUtils.java:89
← previous
next →
101–200 of 14,300, ranked by callers