Changeset 4864


Ignore:
Timestamp:
Feb 16, 2014, 6:03:04 PM (11 years ago)
Author:
Christian Schulte
Message:

o Updated to correctly write model objects.
o Updated to add attributes 'specificationModelFile', 'instanceModelFile' and 'moduleModuleFile' to the 'write-model' Ant task.

Closes #54
Fixes #55

Location:
jomc/trunk/jomc-ant-tasks/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified jomc/trunk/jomc-ant-tasks/src/main/java/org/jomc/ant/WriteModelTask.java

    r4607 r4864  
    7979    private File modelFile;
    8080
     81    /**
     82     * File to write the specification to.
     83     * @since 1.6
     84     */
     85    private File specificationModelFile;
     86
     87    /**
     88     * File to write the instance to.
     89     * @since 1.6
     90     */
     91    private File instanceModelFile;
     92
     93    /**
     94     * File to write the module to.
     95     * @since 1.6
     96     */
     97    private File moduleModelFile;
     98
    8199    /** Creates a new {@code WriteModelTask} instance. */
    82100    public WriteModelTask()
     
    136154    {
    137155        this.modelFile = value;
     156    }
     157
     158    /**
     159     * Gets the file to write the specification to.
     160     *
     161     * @return The file to write the specification to or {@code null}.
     162     *
     163     * @see #setSpecificationModelFile(java.io.File)
     164     *
     165     * @since 1.6
     166     */
     167    public File getSpecificationModelFile()
     168    {
     169        return this.specificationModelFile;
     170    }
     171
     172    /**
     173     * Sets the file to write the specification to.
     174     *
     175     * @param value The new file to write the specification to or {@code null}.
     176     *
     177     * @see #getSpecificationModelFile()
     178     *
     179     * @since 1.6
     180     */
     181    public void setSpecificationModelFile( final File value )
     182    {
     183        this.specificationModelFile = value;
     184    }
     185
     186    /**
     187     * Gets the file to write the instance to.
     188     *
     189     * @return The file to write the instance to or {@code null}.
     190     *
     191     * @see #setInstanceModelFile(java.io.File)
     192     *
     193     * @since 1.6
     194     */
     195    public File getInstanceModelFile()
     196    {
     197        return this.instanceModelFile;
     198    }
     199
     200    /**
     201     * Sets the file to write the instance to.
     202     *
     203     * @param value The new file to write the instance to or {@code null}.
     204     *
     205     * @see #getInstanceModelFile()
     206     *
     207     * @since 1.6
     208     */
     209    public void setInstanceModelFile( final File value )
     210    {
     211        this.instanceModelFile = value;
     212    }
     213
     214    /**
     215     * Gets the file to write the module to.
     216     *
     217     * @return The file to write the module to or {@code null}.
     218     *
     219     * @see #setModuleModelFile(java.io.File)
     220     *
     221     * @since 1.6
     222     */
     223    public File getModuleModelFile()
     224    {
     225        return this.moduleModelFile;
     226    }
     227
     228    /**
     229     * Sets the file to write the module to.
     230     *
     231     * @param value The new file to write the module to or {@code null}.
     232     *
     233     * @see #getModuleModelFile()
     234     *
     235     * @since 1.6
     236     */
     237    public void setModuleModelFile( final File value )
     238    {
     239        this.moduleModelFile = value;
    138240    }
    139241
     
    351453            if ( s != null )
    352454            {
    353                 displayModel.getAny().add( s );
     455                displayModel.getAny().add( new org.jomc.model.ObjectFactory().createSpecification( s ) );
     456
     457                if ( this.getSpecificationModelFile() != null )
     458                {
     459                    this.log( Messages.getMessage( "writingSpecification", s.getIdentifier(),
     460                                                   this.getSpecificationModelFile().getAbsolutePath() ),
     461                              Project.MSG_INFO );
     462
     463                    marshaller.marshal( new org.jomc.model.ObjectFactory().createSpecification( s ),
     464                                        this.getSpecificationModelFile() );
     465
     466                }
    354467            }
    355468
     
    357470            if ( i != null )
    358471            {
    359                 displayModel.getAny().add( i );
     472                displayModel.getAny().add( new org.jomc.model.ObjectFactory().createInstance( i ) );
     473
     474                if ( this.getInstanceModelFile() != null )
     475                {
     476                    this.log( Messages.getMessage( "writingInstance", i.getIdentifier(),
     477                                                   this.getInstanceModelFile().getAbsolutePath() ),
     478                              Project.MSG_INFO );
     479
     480                    marshaller.marshal( new org.jomc.model.ObjectFactory().createInstance( i ),
     481                                        this.getInstanceModelFile() );
     482
     483                }
    360484            }
    361485
     
    363487            if ( m != null )
    364488            {
    365                 displayModel.getAny().add( m );
     489                displayModel.getAny().add( new org.jomc.model.ObjectFactory().createModule( m ) );
     490
     491                if ( this.getModuleModelFile() != null )
     492                {
     493                    this.log( Messages.getMessage( "writingModule", m.getName(),
     494                                                   this.getModuleModelFile().getAbsolutePath() ),
     495                              Project.MSG_INFO );
     496
     497                    marshaller.marshal( new org.jomc.model.ObjectFactory().createModule( m ),
     498                                        this.getModuleModelFile() );
     499
     500                }
    366501            }
    367502
  • TabularUnified jomc/trunk/jomc-ant-tasks/src/main/resources/org/jomc/ant/Messages.properties

    r4748 r4864  
    11# $JOMC$
    2 separator=--------------------------------------------------------------------------------
    3 title=JOMC \u2051 Ant Tasks ${project.version} (${build.date})
    4 mandatoryAttribute=Mandatory attribute ''{0}'' is missing a value.
    5 unimplementedTask=Class ''{0}'' does not override method ''{1}''.
    6 resourceNotFound=Resource ''{0}'' not found.
    7 malformedLocation=Malformed location ''{0}''.{1}
    8 transformerNotFound=XSLT document ''{0}'' not found.
    9 propertiesNotFound=Properties ''{0}'' not found.
    102classProcessingDisabled=Class file processing disabled.
    113classProcessingSuccess=Class file processing successful.
    124committingModelObjects=Committing ''{0}'' model objects ...
     5excludingModlet=Excluding modlet ''{0}''.
     6excludingModule=Excluding module ''{0}''.
     7failedCreatingObject=Failure creating a new ''{0}'' object.
    138generatingResources=Generating ''{0}'' resources ...
    14 specificationNotFound=Specification ''{0}'' not found.
     9illegalTransformationResult=Failure transforming result document using ''{0}''. Illegal transformation result.
    1510implementationNotFound=Implementation ''{0}'' not found.
     11includingModlet=Including modlet ''{0}''.
     12includingModule=Including module ''{0}''.
     13invalidModel=Invalid ''{0}'' model.
     14malformedLocation=Malformed location ''{0}''.{1}
     15managingSources=Managing ''{0}'' source files ...
     16mandatoryAttribute=Mandatory attribute ''{0}'' is missing a value.
     17mergingModlets=Merging modlets of model ''{0}'' ...
     18mergingModules=Merging modules of model ''{0}'' ...
     19modelValidationFailure=Model validation failure.
     20modelValidationSuccess=Model validation successful.
     21modletExclusion=Modlet ''{1}'' from class path resource ''{0}'' ignored.
     22modletResourceNotFound=Modlet resource ''{0}'' not found.
    1623moduleNotFound=Module ''{0}'' not found.
    17 templateLocationNotFound=Template location ''{0}'' not found.
     24moduleResourceNotFound=Module resource ''{0}'' not found.
    1825multipleElements=Multiple nested ''{0}'' elements.
    19 managingSources=Managing ''{0}'' source files ...
    20 includingModlet=Including modlet ''{0}''.
    21 excludingModlet=Excluding modlet ''{0}''.
    22 illegalTransformationResult=Failure transforming result document using ''{0}''. Illegal transformation result.
    23 mergingModlets=Merging modlets of model ''{0}'' ...
    24 includingModule=Including module ''{0}''.
    25 excludingModule=Excluding module ''{0}''.
    26 mergingModules=Merging modules of model ''{0}'' ...
     26propertiesNotFound=Properties ''{0}'' not found.
     27providerExclusion=Provider ''{1}'' from class path resource ''{0}'' ignored.
     28reading=Reading ''{0}''.
     29resourceFailure=Failed reading resource ''{0}''.{1}
     30resourceNotFound=Resource ''{0}'' not found.
    2731resourceProcessingDisabled=Resource file processing disabled.
    2832resourceProcessingSuccess=Resource file processing successful.
     33resourceTimeout=Timeout reading resource ''{0}''.{1}
     34schemaExclusion=Schema ''{1}'' from class path resource ''{0}'' ignored.
     35separator=--------------------------------------------------------------------------------
     36serviceExclusion=Service ''{1}'' from class path resource ''{0}'' ignored.
     37showingModelObjects=Showing ''{0}'' model objects ...
    2938sourceProcessingDisabled=Source file processing disabled.
    3039sourceProcessingSuccess=Source file processing successful.
     40specificationNotFound=Specification ''{0}'' not found.
     41templateLocationNotFound=Template location ''{0}'' not found.
     42title=JOMC \u2051 Ant Tasks ${project.version} (${build.date})
     43transformerNotFound=XSLT document ''{0}'' not found.
     44unimplementedTask=Class ''{0}'' does not override method ''{1}''.
     45unsupportedModletResource=Modlet resource ''{0}'' not supported.
     46unsupportedModuleResource=Module resource ''{0}'' not supported.
     47validatingClasspath=Validating ''{0}'' class path model objects ...
     48validatingModel=Validating model ''{0}'' ...
    3149validatingModelObjects=Validating ''{0}'' model objects ...
    32 validatingClasspath=Validating ''{0}'' class path model objects ...
    33 modelValidationFailure=Model validation failure.
    34 modelValidationSuccess=Model validation successful.
    35 validatingModel=Validating model ''{0}'' ...
    36 invalidModel=Invalid ''{0}'' model.
    3750writingEncoded=Writing ''{0}'' using encoding ''{1}''.
     51writingInstance=Writing instance ''{0}'' to ''{1}'' ...
    3852writingModelObjects=Writing ''{0}'' model objects to ''{1}'' ...
    39 showingModelObjects=Showing ''{0}'' model objects ...
    40 providerExclusion=Provider ''{1}'' from class path resource ''{0}'' ignored.
    41 serviceExclusion=Service ''{1}'' from class path resource ''{0}'' ignored.
    42 schemaExclusion=Schema ''{1}'' from class path resource ''{0}'' ignored.
    43 modletExclusion=Modlet ''{1}'' from class path resource ''{0}'' ignored.
    44 unsupportedModuleResource=Module resource ''{0}'' not supported.
    45 reading=Reading ''{0}''.
    46 unsupportedModletResource=Modlet resource ''{0}'' not supported.
    47 moduleResourceNotFound=Module resource ''{0}'' not found.
    48 resourceTimeout=Timeout reading resource ''{0}''.{1}
    49 resourceFailure=Failed reading resource ''{0}''.{1}
    50 modletResourceNotFound=Modlet resource ''{0}'' not found.
    51 failedCreatingObject=Failure creating a new ''{0}'' object.
     53writingModule=Writing module ''{0}'' to ''{1}'' ...
     54writingSpecification=Writing specification ''{0}'' to ''{1}'' ...
  • TabularUnified jomc/trunk/jomc-ant-tasks/src/main/resources/org/jomc/ant/Messages_de.properties

    r4748 r4864  
    11# $JOMC$
    2 separator=--------------------------------------------------------------------------------
    3 title=JOMC \u2051 Ant Tasks ${project.version} (${build.date})
    4 mandatoryAttribute=Mandatory attribute ''{0}'' is missing a value.
    5 unimplementedTask=Klasse ''{0}'' \u00fcberschreibt die ''{1}'' Methode nicht.
    6 resourceNotFound=Ressource ''{0}'' nicht gefunden.
    7 malformedLocation=Ung\u00fcltiger Ort ''{0}''.{1}
    8 transformerNotFound=XSLT-Dokument ''{0}'' nicht gefunden.
    9 propertiesNotFound=Eigenschaftendatei ''{0}'' nicht gefunden.
    102classProcessingDisabled=Klassendateiverarbeitung deaktiviert.
    113classProcessingSuccess=Klassendateiverarbeitung erfolgreich.
    124committingModelObjects=Fixiert ''{0}'' Modell-Objekte ...
     5excludingModlet=Modlet ''{0}'' ausgeschlossen.
     6excludingModule=Modul ''{0}'' ausgeschlossen.
     7failedCreatingObject=Fehler bei der Erstellung eines neuen ''{0}'' Objekts.
    138generatingResources=Generiert ''{0}'' Ressource-Dateien ...
    14 specificationNotFound=Spezifikation ''{0}'' nicht gefunden.
     9illegalTransformationResult=Fehler bei der Transformation des Ergebniss-Dokuments mit ''{0}''. Ung\u00fcltiges Transformations-Ergebniss.
    1510implementationNotFound=Implementierung ''{0}'' nicht gefunden.
     11includingModlet=Modlet ''{0}'' eingeschlossen.
     12includingModule=Modul ''{0}'' eingeschlossen.
     13invalidModel=Ung\u00fcltiges ''{0}'' Modell.
     14malformedLocation=Ung\u00fcltiger Ort ''{0}''.{1}
     15managingSources=Verwaltet ''{0}'' Quelltextdateien ...
     16mandatoryAttribute=Mandatory attribute ''{0}'' is missing a value.
     17mergingModlets=F\u00fcgt Modlets von Modell ''{0}'' zusammen ...
     18mergingModules=F\u00fcgt Module von Modell ''{0}'' zusammen ...
     19modelValidationFailure=Modellpr\u00fcfung fehlgeschlagen.
     20modelValidationSuccess=Modellpr\u00fcfung erfolgreich.
     21modletExclusion=Modlet ''{1}'' aus Klassenpfad-Ressource ''{0}'' ignoriert.
     22modletResourceNotFound=Modlet-Ressource ''{0}'' nicht gefunden.
    1623moduleNotFound=Modul ''{0}'' nicht gefunden.
    17 templateLocationNotFound=Vorlagen ''{0}'' nicht gefunden.
     24moduleResourceNotFound=Modul-Ressource ''{0}'' nicht gefunden.
    1825multipleElements=Mehrere ''{0}'' Elemente.
    19 managingSources=Verwaltet ''{0}'' Quelltextdateien ...
    20 includingModlet=Modlet ''{0}'' eingeschlossen.
    21 excludingModlet=Modlet ''{0}'' ausgeschlossen.
    22 illegalTransformationResult=Fehler bei der Transformation des Ergebniss-Dokuments mit ''{0}''. Ung\u00fcltiges Transformations-Ergebniss.
    23 mergingModlets=F\u00fcgt Modlets von Modell ''{0}'' zusammen ...
    24 includingModule=Modul ''{0}'' eingeschlossen.
    25 excludingModule=Modul ''{0}'' ausgeschlossen.
    26 mergingModules=F\u00fcgt Module von Modell ''{0}'' zusammen ...
     26propertiesNotFound=Eigenschaftendatei ''{0}'' nicht gefunden.
     27providerExclusion=Provider ''{1}'' aus Klassenpfad-Ressource ''{0}'' ignoriert.
     28reading=Lie\u00dft ''{0}''.
     29resourceFailure=Fehler beim Lesen von Ressource ''{0}''.{1}
     30resourceNotFound=Ressource ''{0}'' nicht gefunden.
    2731resourceProcessingDisabled=Ressourcedateiverarbeitung deaktiviert.
    2832resourceProcessingSuccess=Ressourcedateiverarbeitung erfolgreich.
     33resourceTimeout=Zeit\u00fcberschreitung beim Lesen von Ressource ''{0}''.{1}
     34schemaExclusion=Schema ''{1}'' aus Klassenpfad-Ressource ''{0}'' ignoriert.
     35separator=--------------------------------------------------------------------------------
     36serviceExclusion=Service ''{1}'' aus Klassenpfad-Ressource ''{0}'' ignoriert.
     37showingModelObjects=Zeigt ''{0}'' Modell-Objekte ...
    2938sourceProcessingDisabled=Quelltextdateiverarbeitung deaktiviert.
    3039sourceProcessingSuccess=Quelltextdateiverarbeitung erfolgreich.
     40specificationNotFound=Spezifikation ''{0}'' nicht gefunden.
     41templateLocationNotFound=Vorlagen ''{0}'' nicht gefunden.
     42title=JOMC \u2051 Ant Tasks ${project.version} (${build.date})
     43transformerNotFound=XSLT-Dokument ''{0}'' nicht gefunden.
     44unimplementedTask=Klasse ''{0}'' \u00fcberschreibt die ''{1}'' Methode nicht.
     45unsupportedModletResource=Keine Unterst\u00fctzung f\u00fcr Modlet-Ressource ''{0}''.
     46unsupportedModuleResource=Keine Unterst\u00fctzung f\u00fcr Modul-Ressource ''{0}''.
     47validatingClasspath=Pr\u00fcft ''{0}'' Klassenpfad-Modellobjekte ...
     48validatingModel=Pr\u00fcft Modell ''{0}'' ...
    3149validatingModelObjects=Pr\u00fcft ''{0}'' Modell-Objekte ...
    32 validatingClasspath=Pr\u00fcft ''{0}'' Klassenpfad-Modellobjekte ...
    33 modelValidationFailure=Modellpr\u00fcfung fehlgeschlagen.
    34 modelValidationSuccess=Modellpr\u00fcfung erfolgreich.
    35 validatingModel=Pr\u00fcft Modell ''{0}'' ...
    36 invalidModel=Ung\u00fcltiges ''{0}'' Modell.
    3750writingEncoded=Schreibt ''{0}'' mit Kodierung ''{1}''.
     51writingInstance=Schreibt Instanz ''{0}'' nach ''{1}'' ...
    3852writingModelObjects=Schreibt ''{0}'' Modell-Objekte nach ''{1}'' ....
    39 showingModelObjects=Zeigt ''{0}'' Modell-Objekte ...
    40 providerExclusion=Provider ''{1}'' aus Klassenpfad-Ressource ''{0}'' ignoriert.
    41 serviceExclusion=Service ''{1}'' aus Klassenpfad-Ressource ''{0}'' ignoriert.
    42 schemaExclusion=Schema ''{1}'' aus Klassenpfad-Ressource ''{0}'' ignoriert.
    43 modletExclusion=Modlet ''{1}'' aus Klassenpfad-Ressource ''{0}'' ignoriert.
    44 unsupportedModuleResource=Keine Unterst\u00fctzung f\u00fcr Modul-Ressource ''{0}''.
    45 reading=Lie\u00dft ''{0}''.
    46 unsupportedModletResource=Keine Unterst\u00fctzung f\u00fcr Modlet-Ressource ''{0}''.
    47 moduleResourceNotFound=Modul-Ressource ''{0}'' nicht gefunden.
    48 resourceTimeout=Zeit\u00fcberschreitung beim Lesen von Ressource ''{0}''.{1}
    49 resourceFailure=Fehler beim Lesen von Ressource ''{0}''.{1}
    50 modletResourceNotFound=Modlet-Ressource ''{0}'' nicht gefunden.
    51 failedCreatingObject=Fehler bei der Erstellung eines neuen ''{0}'' Objekts.
     53writingModule=Schreibt Modul ''{0}'' nach ''{1}'' ...
     54writingSpecification=Schreibt Spezifikation ''{0}'' nach ''{1}'' ...
  • TabularUnified jomc/trunk/jomc-ant-tasks/src/main/resources/org/jomc/ant/Messages_en.properties

    r4748 r4864  
    11# $JOMC$
    2 separator=--------------------------------------------------------------------------------
    3 title=JOMC \u2051 Ant Tasks ${project.version} (${build.date})
    4 mandatoryAttribute=Mandatory attribute ''{0}'' is missing a value.
    5 unimplementedTask=Class ''{0}'' does not override method ''{1}''.
    6 resourceNotFound=Resource ''{0}'' not found.
    7 malformedLocation=Malformed location ''{0}''.{1}
    8 transformerNotFound=XSLT document ''{0}'' not found.
    9 propertiesNotFound=Properties ''{0}'' not found.
    102classProcessingDisabled=Class file processing disabled.
    113classProcessingSuccess=Class file processing successful.
    124committingModelObjects=Committing ''{0}'' model objects ...
     5excludingModlet=Excluding modlet ''{0}''.
     6excludingModule=Excluding module ''{0}''.
     7failedCreatingObject=Failure creating a new ''{0}'' object.
    138generatingResources=Generating ''{0}'' resources ...
    14 specificationNotFound=Specification ''{0}'' not found.
     9illegalTransformationResult=Failure transforming result document using ''{0}''. Illegal transformation result.
    1510implementationNotFound=Implementation ''{0}'' not found.
     11includingModlet=Including modlet ''{0}''.
     12includingModule=Including module ''{0}''.
     13invalidModel=Invalid ''{0}'' model.
     14malformedLocation=Malformed location ''{0}''.{1}
     15managingSources=Managing ''{0}'' source files ...
     16mandatoryAttribute=Mandatory attribute ''{0}'' is missing a value.
     17mergingModlets=Merging modlets of model ''{0}'' ...
     18mergingModules=Merging modules of model ''{0}'' ...
     19modelValidationFailure=Model validation failure.
     20modelValidationSuccess=Model validation successful.
     21modletExclusion=Modlet ''{1}'' from class path resource ''{0}'' ignored.
     22modletResourceNotFound=Modlet resource ''{0}'' not found.
    1623moduleNotFound=Module ''{0}'' not found.
    17 templateLocationNotFound=Template location ''{0}'' not found.
     24moduleResourceNotFound=Module resource ''{0}'' not found.
    1825multipleElements=Multiple nested ''{0}'' elements.
    19 managingSources=Managing ''{0}'' source files ...
    20 includingModlet=Including modlet ''{0}''.
    21 excludingModlet=Excluding modlet ''{0}''.
    22 illegalTransformationResult=Failure transforming result document using ''{0}''. Illegal transformation result.
    23 mergingModlets=Merging modlets of model ''{0}'' ...
    24 includingModule=Including module ''{0}''.
    25 excludingModule=Excluding module ''{0}''.
    26 mergingModules=Merging modules of model ''{0}'' ...
     26propertiesNotFound=Properties ''{0}'' not found.
     27providerExclusion=Provider ''{1}'' from class path resource ''{0}'' ignored.
     28reading=Reading ''{0}''.
     29resourceFailure=Failed reading resource ''{0}''.{1}
     30resourceNotFound=Resource ''{0}'' not found.
    2731resourceProcessingDisabled=Resource file processing disabled.
    2832resourceProcessingSuccess=Resource file processing successful.
     33resourceTimeout=Timeout reading resource ''{0}''.{1}
     34schemaExclusion=Schema ''{1}'' from class path resource ''{0}'' ignored.
     35separator=--------------------------------------------------------------------------------
     36serviceExclusion=Service ''{1}'' from class path resource ''{0}'' ignored.
     37showingModelObjects=Showing ''{0}'' model objects ...
    2938sourceProcessingDisabled=Source file processing disabled.
    3039sourceProcessingSuccess=Source file processing successful.
     40specificationNotFound=Specification ''{0}'' not found.
     41templateLocationNotFound=Template location ''{0}'' not found.
     42title=JOMC \u2051 Ant Tasks ${project.version} (${build.date})
     43transformerNotFound=XSLT document ''{0}'' not found.
     44unimplementedTask=Class ''{0}'' does not override method ''{1}''.
     45unsupportedModletResource=Modlet resource ''{0}'' not supported.
     46unsupportedModuleResource=Module resource ''{0}'' not supported.
     47validatingClasspath=Validating ''{0}'' class path model objects ...
     48validatingModel=Validating model ''{0}'' ...
    3149validatingModelObjects=Validating ''{0}'' model objects ...
    32 validatingClasspath=Validating ''{0}'' class path model objects ...
    33 modelValidationFailure=Model validation failure.
    34 modelValidationSuccess=Model validation successful.
    35 validatingModel=Validating model ''{0}'' ...
    36 invalidModel=Invalid ''{0}'' model.
    3750writingEncoded=Writing ''{0}'' using encoding ''{1}''.
     51writingInstance=Writing instance ''{0}'' to ''{1}'' ...
    3852writingModelObjects=Writing ''{0}'' model objects to ''{1}'' ...
    39 showingModelObjects=Showing ''{0}'' model objects ...
    40 providerExclusion=Provider ''{1}'' from class path resource ''{0}'' ignored.
    41 serviceExclusion=Service ''{1}'' from class path resource ''{0}'' ignored.
    42 schemaExclusion=Schema ''{1}'' from class path resource ''{0}'' ignored.
    43 modletExclusion=Modlet ''{1}'' from class path resource ''{0}'' ignored.
    44 unsupportedModuleResource=Module resource ''{0}'' not supported.
    45 reading=Reading ''{0}''.
    46 unsupportedModletResource=Modlet resource ''{0}'' not supported.
    47 moduleResourceNotFound=Module resource ''{0}'' not found.
    48 resourceTimeout=Timeout reading resource ''{0}''.{1}
    49 resourceFailure=Failed reading resource ''{0}''.{1}
    50 modletResourceNotFound=Modlet resource ''{0}'' not found.
    51 failedCreatingObject=Failure creating a new ''{0}'' object.
     53writingModule=Writing module ''{0}'' to ''{1}'' ...
     54writingSpecification=Writing specification ''{0}'' to ''{1}'' ...
  • TabularUnified jomc/trunk/jomc-ant-tasks/src/site/apt/reference.apt.vm

    r4702 r4864  
    13391339|                                             | write.                                     |                        |
    13401340*---------------------------------------------+--------------------------------------------+------------------------+
     1341| <<<instanceModelFile>>>                     | File to write the instance to.             | No.                    |
     1342|                                             | <Since 1.6>                                |                        |
     1343*---------------------------------------------+--------------------------------------------+------------------------+
    13411344| <<<model>>>                                 | The public identifier of the model to      | No. Defaults to the    |
    13421345|                                             | process.                                   | JOMC model public id.  |
     
    13761379|                                             | modules.                                   |                        |
    13771380*---------------------------------------------+--------------------------------------------+------------------------+
     1381| <<<moduleModelFile>>>                       | File to write the module to.               | No.                    |
     1382|                                             | <Since 1.6>                                |                        |
     1383*---------------------------------------------+--------------------------------------------+------------------------+
    13781384| <<<platformProviderLocation>>>              | The location searched for platform         | No. {{{H}[H]}}         |
    13791385|                                             | provider resources.                        |                        |
     
    13841390| <<<specification>>>                         | The identifier of a specification to       | No.                    |
    13851391|                                             | write.                                     |                        |
     1392*---------------------------------------------+--------------------------------------------+------------------------+
     1393| <<<specificationModelFile>>>                | File to write the specification to.        | No.                    |
     1394|                                             | <Since 1.6>                                |                        |
    13861395*---------------------------------------------+--------------------------------------------+------------------------+
    13871396| <<<transformerLocation>>>                   | The class path location searched for       | No. {{{J}[J]}}         |
  • TabularUnified jomc/trunk/jomc-ant-tasks/src/test/ant/org/jomc/ant/test/write-model-task-test.xml

    r4702 r4864  
    122122  <target name="test-write-model-all-attributes">
    123123    <jomc:write-model modelEncoding="US-ASCII"
    124                       modelFile="${empty.dir}/jomc-model.xml"
    125                       specification="TEST"
    126                       implementation="TEST"
    127                       module="TEST"
    128                       moduleLocation="TEST"
     124                      modelFile="${empty.dir}/model.xml"
     125                      specification="org.jomc.ant.test.ClassFileProcessorTask"
     126                      specificationModelFile="${empty.dir}/specification.xml"
     127                      implementation="org.jomc.ant.test.ClassFileProcessorTask"
     128                      instanceModelFile="${empty.dir}/instance.xml"
     129                      module="JOMC Ant Tasks Tests"
     130                      moduleLocation="META-INF/jomc.xml"
     131                      moduleModelFile="${empty.dir}/module.xml"
    129132                      transformerLocation="TEST"
    130133                      modelObjectClasspathResolutionEnabled="false"
Note: See TracChangeset for help on using the changeset viewer.