[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/tasks/system/ -> PhingTask.php (sommaire)

(pas de description)

Poids: 618 lignes (21 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

PhingTask:: (18 méthodes):
  setHaltOnFailure()
  init()
  reinit()
  main()
  processFile()
  initializeProject()
  overrideProperties()
  addReferences()
  copyReference()
  setInheritAll()
  setInheritRefs()
  setDir()
  setPhingfile()
  setBuildfile()
  setTarget()
  createFileSet()
  createProperty()
  createReference()

PhingReference:: (2 méthodes):
  setToRefid()
  getToRefid()


Classe: PhingTask  - X-Ref

Task that invokes phing on another build file.

Use this task, for example, if you have nested buildfiles in your project. Unlike
AntTask, PhingTask can even support filesets:

<pre>
<phing>
<fileset dir="${srcdir}">
<include name="** /build.xml" /> <!-- space added after ** is there because of PHP comment syntax -->
<exclude name="build.xml" />
</fileset>
</phing>
</pre>

setHaltOnFailure($hof)   X-Ref
If true, abort the build process if there is a problem with or in the target build file.
Defaults to false.

param: boolean new value

init()   X-Ref
Creates a Project instance for the project to call.

return: void

reinit()   X-Ref
Called in execute or createProperty if newProject is null.

<p>This can happen if the same instance of this task is run
twice as newProject is set to null at the end of execute (to
save memory and help the GC).</p>

<p>Sets all properties that have been defined as nested
property elements.</p>

main()   X-Ref
Main entry point for the task.

return: void

processFile()   X-Ref
Execute phing file.

return: void

initializeProject()   X-Ref
Configure the Project, i.e. make intance, attach build listeners
(copy from father project), add Task and Datatype definitions,
copy properties and references from old project if these options
are set via the attributes of the XML tag.

Developer note:
This function replaces the old methods "init", "_reinit" and
"_initializeProject".


overrideProperties()   X-Ref
Override the properties in the new project with the one
explicitly defined as nested elements here.

return: void

addReferences()   X-Ref
Add the references explicitly defined as nested elements to the
new project.  Also copy over all references that don't override
existing references in the new project if inheritrefs has been
requested.

return: void

copyReference($oldKey, $newKey)   X-Ref
Try to clone and reconfigure the object referenced by oldkey in
the parent project and add it to the new project with the key
newkey.

<p>If we cannot clone it, copy the referenced object itself and
keep our fingers crossed.</p>

param: string $oldKey
param: string $newKey
return: void

setInheritAll($value)   X-Ref
If true, pass all properties to the new phing project.
Defaults to true.


setInheritRefs($value)   X-Ref
If true, pass all references to the new phing project.
Defaults to false.


setDir($d)   X-Ref
The directory to use as a base directory for the new phing project.
Defaults to the current project's basedir, unless inheritall
has been set to false, in which case it doesn't have a default
value. This will override the basedir setting of the called project.


setPhingfile($s)   X-Ref
The build file to use.
Defaults to "build.xml". This file is expected to be a filename relative
to the dir attribute given.


setBuildfile($s)   X-Ref
Alias function for setPhingfile


setTarget($s)   X-Ref
The target of the new Phing project to execute.
Defaults to the new project's default target.


createFileSet()   X-Ref
Support for filesets; This method returns a reference to an instance
of a FileSet object.

return: FileSet

createProperty()   X-Ref
Property to pass to the new project.
The property is passed as a 'user property'


createReference()   X-Ref
Reference element identifying a data type to carry
over to the new project.


Classe: PhingReference  - X-Ref

Helper class that implements the nested <reference>
element of <phing> and <phingcall>.

setToRefid($targetid)   X-Ref
Set the id that this reference to be stored under in the
new project.

param: targetid the id under which this reference will be passed to

getToRefid()   X-Ref
Get the id under which this reference will be stored in the new
project

return: the id of the reference in the new project.



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7