Hi Oscar,

Couldn't a script (e.g. apache ant) that involkes the retrotranlator app
from the maven?

Adriano Crestani

On Sat, Jul 19, 2008 at 4:33 AM, Oscar Castaneda <
[EMAIL PROTECTED]> wrote:

> Hi Luciano,
>
> An update is that the reflection and stripannot options from
> retrotranslator command-line are not present in the maven plugin. I created
> a JIRA [1] for this issue for the Mojo project that produces the plugin.
>
> Both options are required. The first option (reflection) includes metadata
> into classes to make reflection work even if the classes are unavailable as
> resources after translation. The second option (stripannot) removes
> annotations and related attributes. The fact that both options are not
> available in the maven plugin for retrotranslator makes the Maven
> integration with Retrotranslator even less of an option for running Tuscany
> on Android.
>
> [1] http://jira.codehaus.org/browse/MRETRO-30
>
>
> On Sat, Jul 19, 2008 at 12:50 AM, Oscar Castaneda <
> [EMAIL PROTECTED]> wrote:
>
>> Hi Luciano,
>>
>> There was some progress today. I added the retrotranslator-maven-plugin
>> (excerpt show below) to the pom.xml files for all modules. I was able to
>> build (including retrotranslation) with no problems with:
>>
>> mvn clean install -Dtest=no
>> mvn -Peclipse eclipse:eclipse -Dtest=no
>>
>> However, it's not as simple as only these two steps in maven. Even though
>> the modules will be retrotranslated with no problems, a user looking to
>> reproduce the workspace will still need to add the projects to Eclipse and
>> go through the steps in the retrotranslator_readme. This includes building
>> all projects in Eclipse which will unfortunately "undo" the retrotranslation
>> done with Maven. IMO it's still easier to run retrotranslator on the trunk
>> or workspace.
>>
>> Additionally, the android sandbox would need to be integrated. Currently,
>> it is checked out separately and put together with the other modules until
>> projects are imported into Eclipse.
>>
>> Below are the extra lines for the pom.xml files. I'm currently checking
>> out if the reflection and stripannot options are available in the plugin as
>> they are not documented in the plugin project page [1].
>>
>> <plugin>
>>     <groupId>org.codehaus.mojo</groupId>
>>     <artifactId>retrotranslator-maven-plugin</artifactId>
>>     <executions>
>>         <execution>
>>             <phase>process-classes</phase>
>>             <goals>
>>                 <goal>translate</goal>
>>             </goals>
>>             <configuration>
>>                 <filesets>
>>                     <fileset>
>>
>> <directory>${project.build.outputDirectory}</directory>
>>                         <includes>
>>                             <include>**/*.class</include>
>>                         </includes>
>>                     </fileset>
>>                 </filesets>
>>                 <target>1.5</target>
>>                 <reflection>safe</reflection>
>>                 <stripannot>true</stripannot>
>>                 <verbose>true</verbose>
>>             </configuration>
>>         </execution>
>>     </executions>
>> </plugin>
>>
>> [1]
>> http://mojo.codehaus.org/retrotranslator-maven-plugin/translate-mojo.html
>>
>>
>> On Thu, Jul 17, 2008 at 7:37 PM, Luciano Resende <[EMAIL PROTECTED]>
>> wrote:
>>
>>> Any progress on getting "these instructions" down to a simple maven
>>> command like :
>>>
>>> mvn clean install
>>> mvn -o -Peclipse eclipse:eclipse
>>>
>>>
>>>
>> --
>> best,
>> -oscar
>>
>> Oscar CastaƱeda
>>
>
>
>
> --
> best,
> -oscar
>
> Oscar CastaƱeda
>

Reply via email to