[jira] (DOXIA-373) Macro snippet with file option in a multi-pom project

2013-03-30 Thread Robert Scholte (JIRA)

 [ 
https://jira.codehaus.org/browse/DOXIA-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated DOXIA-373:
-

Component/s: Module - Apt

> Macro snippet with file option in a multi-pom project
> -
>
> Key: DOXIA-373
> URL: https://jira.codehaus.org/browse/DOXIA-373
> Project: Maven Doxia
>  Issue Type: Bug
>  Components: Module - Apt
> Environment: Window XP
>Reporter: poulfich
>
> The project is a multi pom project. In the main pom project, I declare the 
> other pom like this :
> {code:xml}
>
> ../moduleA
> ../moduleB
>...
>
> {code}
> To avoid duplicate code,I use the macro snippet in my documentation in 
> modules A, B and Main. For convenient, the following  syntax : 
> {noformat} %{snippet|id=myid|file=src/main/java/mypackage/File.java} 
> {noformat}.
> When I build the site from each module A or B, all work fine. But when the 
> site was generated from the main module, the snippet seem not work : All  the 
> pages who include a snippet's macros in A or B are not generated. I obtain 
> the same problem if i do a simple site or a site:stage
>   
> The maven site work fine work include pictures and schemas of local 
> documentation (in A et B). I try to use
> the velocity macro and transform {{MyFile.apt}} to {{MyFile.apt.vm}} like 
> these :
> {noformat}
> MyFile.apt.vm
> %{snippet|id=myid|file=${basedir}/src/main/java/mypackage/File.java}.
> {noformat}
> It's fail too.
> I use  maven 2.1.0
> Sorry for my poor english

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (DOXIA-373) Macro snippet with file option in a multi-pom project

2013-03-30 Thread Robert Scholte (JIRA)

 [ 
https://jira.codehaus.org/browse/DOXIA-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated DOXIA-373:
-

Description: 
The project is a multi pom project. In the main pom project, I declare the 
other pom like this :
{code:xml}
   
../moduleA
../moduleB
   ...
   
{code}
To avoid duplicate code,I use the macro snippet in my documentation in modules 
A, B and Main. For convenient, the following  syntax : 
{noformat} %{snippet|id=myid|file=src/main/java/mypackage/File.java} {noformat}.

When I build the site from each module A or B, all work fine. But when the site 
was generated from the main module, the snippet seem not work : All  the pages 
who include a snippet's macros in A or B are not generated. I obtain the same 
problem if i do a simple site or a site:stage
  
The maven site work fine work include pictures and schemas of local 
documentation (in A et B). I try to use
the velocity macro and transform {{MyFile.apt}} to {{MyFile.apt.vm}} like these 
:

{noformat}
MyFile.apt.vm
%{snippet|id=myid|file=${basedir}/src/main/java/mypackage/File.java}.
{noformat}

It's fail too.

I use  maven 2.1.0

Sorry for my poor english

  was:
The project is a multi pom project. In the main pom project, I declare the 
other pom like this :
   
../moduleA
../moduleB
   ...
   

To avoid duplicate code,I use the macro snippet in my documentation in modules 
A, B and Main. For convenient, the following  syntax : 
%{snippet|id=myid|file=src/main/java/mypackage/File.java}. 

When I build the site from each module A or B, all work fine. But when the site 
was generated from the main module, the snippet seem not work : All  the pages 
who include a snippet's macros in A or B are not generated. I obtain the same 
problem if i do a simple site or a site:stage
  
The maven site work fine work include pictures and schemas of local 
documentation (in A et B). I try to use
the velocity macro and transform MyFile.apt to MyFile.apt.vm like these :

MyFile.apt.vm
%{snippet|id=myid|file=${basedir}/src/main/java/mypackage/File.java}.

It's fail too.

I use  maven 2.1.0

Sorry for my poor english


> Macro snippet with file option in a multi-pom project
> -
>
> Key: DOXIA-373
> URL: https://jira.codehaus.org/browse/DOXIA-373
> Project: Maven Doxia
>  Issue Type: Bug
> Environment: Window XP
>Reporter: poulfich
>
> The project is a multi pom project. In the main pom project, I declare the 
> other pom like this :
> {code:xml}
>
> ../moduleA
> ../moduleB
>...
>
> {code}
> To avoid duplicate code,I use the macro snippet in my documentation in 
> modules A, B and Main. For convenient, the following  syntax : 
> {noformat} %{snippet|id=myid|file=src/main/java/mypackage/File.java} 
> {noformat}.
> When I build the site from each module A or B, all work fine. But when the 
> site was generated from the main module, the snippet seem not work : All  the 
> pages who include a snippet's macros in A or B are not generated. I obtain 
> the same problem if i do a simple site or a site:stage
>   
> The maven site work fine work include pictures and schemas of local 
> documentation (in A et B). I try to use
> the velocity macro and transform {{MyFile.apt}} to {{MyFile.apt.vm}} like 
> these :
> {noformat}
> MyFile.apt.vm
> %{snippet|id=myid|file=${basedir}/src/main/java/mypackage/File.java}.
> {noformat}
> It's fail too.
> I use  maven 2.1.0
> Sorry for my poor english

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (DOXIA-373) Macro snippet with file option in a multi-pom project

2012-03-09 Thread Andreas Veithen (JIRA)

[ 
https://jira.codehaus.org/browse/DOXIA-373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293713#comment-293713
 ] 

Andreas Veithen commented on DOXIA-373:
---

A workaround for this issue is to use (assuming that the file is a Velocity 
templete, i.e. has suffix .apt.vm instead of .apt):

%{snippet|id=deployment|file=${project.basedir}/src/test/resources/client-config.wsdd}


> Macro snippet with file option in a multi-pom project
> -
>
> Key: DOXIA-373
> URL: https://jira.codehaus.org/browse/DOXIA-373
> Project: Maven Doxia
>  Issue Type: Bug
> Environment: Window XP
>Reporter: poulfich
>
> The project is a multi pom project. In the main pom project, I declare the 
> other pom like this :
>
> ../moduleA
> ../moduleB
>...
>
> To avoid duplicate code,I use the macro snippet in my documentation in 
> modules A, B and Main. For convenient, the following  syntax : 
> %{snippet|id=myid|file=src/main/java/mypackage/File.java}. 
> When I build the site from each module A or B, all work fine. But when the 
> site was generated from the main module, the snippet seem not work : All  the 
> pages who include a snippet's macros in A or B are not generated. I obtain 
> the same problem if i do a simple site or a site:stage
>   
> The maven site work fine work include pictures and schemas of local 
> documentation (in A et B). I try to use
> the velocity macro and transform MyFile.apt to MyFile.apt.vm like these :
> MyFile.apt.vm
> %{snippet|id=myid|file=${basedir}/src/main/java/mypackage/File.java}.
> It's fail too.
> I use  maven 2.1.0
> Sorry for my poor english

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira