Package org.eclipse.tycho.targetplatform
Class TargetDefinitionFile
java.lang.Object
org.eclipse.tycho.targetplatform.TargetDefinitionFile
- All Implemented Interfaces:
TargetDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.tycho.targetplatform.TargetDefinition
TargetDefinition.BNDInstructions, TargetDefinition.DirectoryLocation, TargetDefinition.FeaturesLocation, TargetDefinition.FollowRepositoryReferences, TargetDefinition.ImplicitDependency, TargetDefinition.IncludeMode, TargetDefinition.InstallableUnitLocation, TargetDefinition.Location, TargetDefinition.MavenDependency, TargetDefinition.MavenGAVLocation, TargetDefinition.PathLocation, TargetDefinition.ProfileLocation, TargetDefinition.RepositoryLocation, TargetDefinition.TargetReferenceLocation -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionList<? extends TargetDefinition.Location> Returns the origin of the target definition, e.g. a file path.Returns the value of the targetJRE in *.target file if it's a known EE name.booleanReturnstrueif the target definition specifies an explicit list of bundles to include (i.e. an<includeBundles>in target definition files).static booleanisTargetFile(File file) static File[]listTargetFiles(File folder) List all target files in the given folderstatic TargetDefinitionFilestatic DocumentparseDocument(InputStream input) static TargetDefinitionFilestatic TargetDefinitionFiletoString()static voidwriteDocument(Document document, OutputStream outputStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.tycho.targetplatform.TargetDefinition
equals, hashCode
-
Field Details
-
ELEMENT_LOCATIONS
- See Also:
-
FILE_EXTENSION
- See Also:
-
APPLICATION_TARGET
- See Also:
-
-
Method Details
-
parseDocument
public static Document parseDocument(InputStream input) throws ParserConfigurationException, SAXException, IOException -
writeDocument
- Throws:
IOException
-
getLocations
- Specified by:
getLocationsin interfaceTargetDefinition
-
hasIncludedBundles
public boolean hasIncludedBundles()Description copied from interface:TargetDefinitionReturnstrueif the target definition specifies an explicit list of bundles to include (i.e. an<includeBundles>in target definition files).- Specified by:
hasIncludedBundlesin interfaceTargetDefinition
-
getOrigin
Description copied from interface:TargetDefinitionReturns the origin of the target definition, e.g. a file path. Used for debugging only.- Specified by:
getOriginin interfaceTargetDefinition
-
read
-
read
-
parse
-
getTargetEE
Description copied from interface:TargetDefinitionReturns the value of the targetJRE in *.target file if it's a known EE name.nullwill be returned otherwise.- Specified by:
getTargetEEin interfaceTargetDefinition
-
toString
-
implicitDependencies
- Specified by:
implicitDependenciesin interfaceTargetDefinition- Returns:
- a stream of implicit dependencies defined in the target to add as an additional dependency to every project
-
listTargetFiles
List all target files in the given folder- Parameters:
folder-- Returns:
- the found target files or empty array if nothing was found, folder is not a directory or the directory could not be read
-
isTargetFile
- Parameters:
file-- Returns:
trueif the given files likely denotes are targetfile based on file naming,falseotherwise
-