qickrooms / flex-mojos

Automatically exported from code.google.com/p/flex-mojos
0 stars 0 forks source link

Problem with the beanTemplate configuration parameter of the generate-mojo plugin #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Extract of the POM:
...
plugin>
                <groupId>info.rvin.mojo</groupId>
                <artifactId>generator-mojo</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <includeClasses>

<param>com.francetelecom.eva.services.questeditor.dto.*</param>
                    </includeClasses>
                    <beanTemplate>
                        <param>${basedir}/templates/bean.gsp</param>
                        <param>${basedir}/templates/beanBase.gsp</param>
                    </beanTemplate>
                </configuration>
            </plugin>
...

Under GNU/Linux machines, the generation works well.
Under MS-Windows machines, the generation failed with the following error
message:
"
Caused by: java.net.URISyntaxException: Illegal character in opaque part at
index 2: C:\sdb\QuestionnaireEditor\questedi
tor-flex/src/main/templates/bean.gsp
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.checkChars(URI.java:2982)
        at java.net.URI$Parser.parse(URI.java:3019)
        at java.net.URI.<init>(URI.java:578)
        at
org.granite.generator.as3.AbstractJavaAs3Controller.getTemplate(AbstractJavaAs3C
ontroller.java:144)
        ... 22 more
"

The pb comes from the use of '\' characters that are invalid in URI
expression. The correct separator is '/'. This pb doesn't occur with other
configuration paramaters whatever the used plugins and in which we use also
the basedir maven variable.

Note: as our project is a module within a more global project, all of the
build is processed by a father POM. So, we cannot specify a relative path
in the beanTemplate configuration parameter.

Original issue reported on code.google.com by miguel.m...@gmail.com on 15 Dec 2008 at 4:10

GoogleCodeExporter commented 9 years ago
Same error as 134.

Fixed at TRUNK

Original comment by velo...@gmail.com on 10 Jan 2009 at 1:47