Hi Felix! That was exactly the ant error. Thanks!
But now I´m facing some problem inside maven (I think). This is the output: [exec] [ERROR] BUILD ERROR [exec] [INFO] ------------------------------------------------------------- ----------- [exec] [INFO] The plugin ' org.apache.felix:org.apache.felix.ipojo.plugin' d oes not exist or no valid version could be found Does anyone know how to fix that? Regards Ivo Koga On 3/8/07, Felix Meschberger <[EMAIL PROTECTED]> wrote:
Hi, This seems in fact to be a Windows issue :-) The problems seems to be that the maven bin folder contains a mvn.bat and a mvn file. The mvn.bat file is a dos batch file while mvn is the unix shell script. It now seems that when ant is trying to call the mvn executable, the Java VM or Windows or whoever does not resovle "mvn" to "mvn.bat". If I change 'executable="mvn"' to 'executable="mvn.bat"' it seems to work. By testing for the OS and using a variable to take the mvn executale name, I could get to run on my windows and linux boxes: Regards Felix The hacked up build.xml : <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <project default="all"> <target name="init"> <condition property="mvn" value="mvn.bat"> <os family="dos" /> </condition> <condition property="mvn" value="mvn"> <not> <isset property="mvn" /> </not> </condition> </target> <target name="clean" depends="init"> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=bundle clean" /> </exec> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=osgi-bundle clean" /> </exec> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=ipojo-bundle clean" /> </exec> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=osgi-bundle-mosgi clean" /> </exec> </target> <target name="install" depends="init"> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=bundle install" /> </exec> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=osgi-bundle install" /> </exec> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=ipojo-bundle install" /> </exec> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=osgi-bundle-mosgi install" /> </exec> </target> <target name="all" depends="init"> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=bundle clean install" /> </exec> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=osgi-bundle clean install" /> </exec> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=ipojo-bundle clean install" /> </exec> <exec executable="${mvn}" failonerror="true"> <arg line="-Dpackaging=osgi-bundle-mosgi clean install" /> </exec> </target> </project>
-- Msc. Candidate in Computer Networks at Universidade Salvador/BA/Brazil Measurement WG - RNP/Brazil