commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julien.kir...@bnpparibas.com
Subject file generation with known tag
Date Tue, 15 Jul 2003 15:38:56 GMT
hi there

i'm writting a script to generate a Maven, project.xml file with this
script:

###
<j:file name="target/project.xml" prettyPrint="true">
 <project>
  <id>${pom.artifactId}</id>
  <name>${pom.name}</name>
  <currentVersion>${pom.currentVersion}</currentVersion>
  <package>${pom.package}</package>
  <shortDescription>${pom.shortDescription}</shortDescription>
  <dependencies>
  <j:forEach var="dep" items="${pom.dependencies}">
    <dependency>
    <groupId>${dep.groupId}</groupId>
    <artifactId>${dep.artifactId}</artifactId>
    <version>${dep.version}</version>
    </dependency>
  </j:forEach>
  </dependencies>
  </project>

</j:file>
###

but the output file miss the   "<project>" and   "</project>" tags i.e. it
starts with :

###
<?xml version="1.0" encoding="UTF-8"?>
<id>foo-project</id>
###

 I think it's because jelly recognize the project tag and I should find a
 way to detag it but i can't find how.

Thanks in advance.




This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


Mime
View raw message