xtreemfs/java/flease/nbproject/protobuf-build.xml
2020-09-22 02:25:22 +02:00

25 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="JavaApplication5_protobuf" default="default" basedir="." xmlns:s="http://tabor.waw.pl/netbeans/protobuf/generator/jaxb">
<target name="protobuf-environment">
<echo message="user.properties.file:${user.properties.file}"/>
<dirname property="user.properties.dir" file="${user.properties.file}"/>
<echo message="user.properties.dir:${user.properties.dir}"/>
<property file="${user.properties.dir}/config/Preferences/pl/waw/tabor/netbeans/protobuf/generator.properties"/>
<property name="protobuf.executable" value="protoc"/>
<property name="build.generated.sources.dir.protobuf.java" value="${build.generated.sources.dir}/protobuf-java"/>
<property name="build.generated.sources.dir.protobuf.cpp" value="${build.generated.sources.dir}/protobuf-cpp"/>
<property name="build.generated.sources.dir.protobuf.python" value="${build.generated.sources.dir}/protobuf-python"/>
</target>
<target name="protobuf-code-generation" depends="-do-init,-init-macrodef-javac,protobuf-environment">
<fileset dir="${src.dir}" id="proto.classpath">
<include name="**/*.proto"/>
</fileset>
<pathconvert property="protofiles" pathsep=" " refid="proto.classpath"/>
<echo message="${protobuf.executable} -I ${basedir} ${protofiles}"/>
<exec executable="${protobuf.executable}" searchpath="true">
<arg line="-I ${basedir}"/>
<arg line="${protofiles}"/>
</exec>
</target>
</project>