Skip to content
Snippets Groups Projects
Commit 9b2817ca authored by Damon Kohler's avatar Damon Kohler
Browse files

Converted to maven.

parent 52d7a0f6
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
rosbuild_init()
#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
#uncomment if you have defined messages
#rosbuild_genmsg()
#uncomment if you have defined services
#rosbuild_gensrv()
#common commands for building c++ executables and libraries
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
#target_link_libraries(${PROJECT_NAME} another_library)
#rosbuild_add_boost_directories()
#rosbuild_link_boost(${PROJECT_NAME} thread)
#rosbuild_add_executable(example examples/example.cpp)
#target_link_libraries(example ${PROJECT_NAME})
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="default" name="java">
<property file="ros.properties" />
<include file="dependencies.xml" />
<property name="src.main" location="src/main/java" />
<property name="build.main" location="target/classes" />
<property name="dist" location="target" />
<property name="javac-source" value="1.6" />
<property name="javac-target" value="1.6" />
<property name="debuglevel" value="source,lines,vars" />
<property name="jar" location="${ros.artifact.built}" />
<path id="classpath">
<pathelement path="${ros.compile.classpath}" />
</path>
<path id="test.classpath">
<path refid="classpath" />
<pathelement path="${build.main}" />
<pathelement path="${build.test}" />
<pathelement path="${ros.test.classpath}" />
</path>
<target name="default" depends="init, compile, jar" />
<target name="init">
<fail unless="ros.compile.classpath" message="ros.properties is missing. Run 'rosmake rosjava' first."/>
<mkdir dir="${build.main}" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="init">
<javac debug="true" debuglevel="${debuglevel}" destdir="${build.main}" source="${javac-source}"
target="${javac-target}" includeantruntime="false">
<classpath refid="classpath" />
<src path="${src.main}" />
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${jar}">
<fileset dir="${build.main}" />
</jar>
</target>
<target name="clean">
<delete dir="${build.main}" />
<delete dir="${dist}" />
</target>
</project>
<package> <package>
<description brief="rosjava_tutorial_pubsub"> <description brief="rosjava_tutorial_pubsub">
rosjava_tutorial_pubsub rosjava_tutorial_pubsub
</description> </description>
<author>Damon Kohler</author> <author>Damon Kohler</author>
<license>BSD</license> <license>Apache License 2.0</license>
<review status="unreviewed" notes="" /> <review status="unreviewed" notes="" />
<url>http://ros.org/wiki/rosjava_tutorial_pubsub</url> <url>http://ros.org/wiki/rosjava_tutorial_pubsub</url>
<depend package="rosjava" /> <depend package="rosjava" />
<depend package="std_msgs" /> <depend package="std_msgs" />
<export>
<rosjava-src location="src/main/java" />
<rosjava-pathelement location="target/" groupId="org.ros" artifactId="org.ros.rosjava.tutorial.pubsub" version="0.0.0" built="true" />
</export>
</package> </package>
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.ros</groupId>
<artifactId>org.ros.rosjava_geometry</artifactId>
<version>0.0.0</version>
<packaging>jar</packaging>
<name>rosjava_geometry</name>
<url>http://www.ros.org/rosjava_geometry</url>
<repositories>
<repository>
<id>org.ros.release</id>
<url>http://robotbrains.hideho.org/nexus/content/groups/ros-public</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.ros</groupId>
<artifactId>org.ros.rosjava</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<groupId>org.ros</groupId>
<artifactId>org.ros.message.std_msgs</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
</project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment