felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: How to build felix?
Date Thu, 08 Mar 2007 13:49:41 GMT
Cool, I just committed the fix...thanks a lot.

-> richard

Felix Meschberger 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>
>

Mime
View raw message