Hi, all.

I about to create pom file for some legacy project.
I have to call visibroker compiler from Borland Enterprise Server to
generate stubs and other source files.
For this compiler I have to pass directory with license files as
system property.

So I add extra command line parameter named javaCommandLineString

I use it like that:

                    <execution>
                        <id>generate-java-files-from-idl-files</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>idl2java</goal>
                        </goals>
                        <configuration>

<outputDirectory>${project.build.directory}/genereated-sources</outputDirectory>
                            <javaCommandLineString>

-Dborland.enterprise.licenseDir=C:/work/legacy2/LegacySales/LegacySalesEJB/lib/lic
                            </javaCommandLineString>
                            <sources>
                                <source>src/main/idl/wcs.idl</source>
                                <source>src/main/idl/GIS.idl</source>
                            </sources>
                            <options>
                                <option>-no_comments -no_compile</option>
                            </options>
                        </configuration>
                    </execution>

I put my code to github

https://github.com/nizhikov/visibroker-maven-plugin.git

All changes in

https://github.com/nizhikov/visibroker-maven-plugin/blob/master/src/main/java/org/codehaus/mojo/visibroker/AbstractIDL2XXXMojo.java

I think that change may be usefull for other people.
What do you think?
Should I provide patch for this?

-- 
С уважением, Николай Ижиков
[email protected]

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to