Imported Upstream version 1.5.1
This commit is contained in:
24
java/flease/nbproject/protobuf-build.xml
Normal file
24
java/flease/nbproject/protobuf-build.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user