Skip to content

Commit

Permalink
Rename clang_format.exe_file to clang_format.exec_file in ant cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Jan 9, 2024
1 parent 9f8ebde commit 3b4f6e9
Show file tree
Hide file tree
Showing 103 changed files with 141 additions and 141 deletions.
14 changes: 7 additions & 7 deletions compiler/core/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ zserio_core.build_dir - Directory where to put generated files.
zserio_core.install_dir - Directory where to install Zserio core jar file.
Default is "${zserio.install_dir}/zserio_libs".
zserio.version - Zserio version to be used for Zserio core. Default is "unknown".
clang_format.exe_file - Clang-format executable file. If not set, clang-format is not run.
clang_format.exec_file - Clang-format executable file. If not set, clang-format is not run.
spotbugs.home_dir - Location of the spotbugs tool. If not set, spotbugs is not run.
-->
Expand Down Expand Up @@ -206,13 +206,13 @@ spotbugs.home_dir - Location of the spotbugs tool. If not set, spotbugs is
</copy>
</target>

<target name="clang_format" depends="install" if="clang_format.exe_file">
<target name="clang_format" depends="install" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down Expand Up @@ -262,13 +262,13 @@ Command hints to reformat source using clang-format tool:
</javac>
</target>

<target name="test.clang_format" depends="spotbugs, test.compile" if="clang_format.exe_file">
<target name="test.clang_format" depends="spotbugs, test.compile" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down
14 changes: 7 additions & 7 deletions compiler/extensions/cpp/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ zserio_cpp.install_dir - Directory where to install Zserio C++ Extension
zserio_core.jar_file - Zserio core jar file used for classpath.
Default is "${zserio_extensions.build_dir}/../core/${ant.java.version}/jar/
zserio_core.jar".
clang_format.exe_file - Clang-format executable file. If not set, clang-format is not run.
clang_format.exec_file - Clang-format executable file. If not set, clang-format is not run.
spotbugs.home_dir - Location of the spotbugs tool. If not set, spotbugs is not run.
-->
Expand Down Expand Up @@ -162,13 +162,13 @@ spotbugs.home_dir - Location of the spotbugs tool. If not set, spotb
</copy>
</target>

<target name="clang_format" depends="install" if="clang_format.exe_file">
<target name="clang_format" depends="install" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down Expand Up @@ -219,13 +219,13 @@ Command hints to reformat source using clang-format tool:
</javac>
</target>

<target name="test.clang_format" depends="spotbugs, test.compile" if="clang_format.exe_file">
<target name="test.clang_format" depends="spotbugs, test.compile" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down
8 changes: 4 additions & 4 deletions compiler/extensions/doc/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ zserio_doc.install_dir - Directory where to install Zserio Doc Extension
zserio_core.jar_file - Zserio core jar file used for classpath.
Default is "${zserio_extensions.build_dir}/../core/${ant.java.version}/jar/
zserio_core.jar".
clang_format.exe_file - Clang-format executable file. If not set, clang-format is not run.
clang_format.exec_file - Clang-format executable file. If not set, clang-format is not run.
spotbugs.home_dir - Location of the spotbugs tool. If not set, spotbugs is not run.
-->
Expand Down Expand Up @@ -185,13 +185,13 @@ spotbugs.home_dir - Location of the spotbugs tool. If not set, spotb
</copy>
</target>

<target name="clang_format" depends="install" if="clang_format.exe_file">
<target name="clang_format" depends="install" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down
8 changes: 4 additions & 4 deletions compiler/extensions/java/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ zserio_java.install_dir - Directory where to install Zserio Doc Extension
zserio_core.jar_file - Zserio core jar file used for classpath.
Default is "${zserio_extensions.build_dir}/../core/${ant.java.version}/jar/
zserio_core.jar".
clang_format.exe_file - Clang-format executable file. If not set, clang-format is not run.
clang_format.exec_file - Clang-format executable file. If not set, clang-format is not run.
spotbugs.home_dir - Location of the spotbugs tool. If not set, spotbugs is not run.
-->
Expand Down Expand Up @@ -151,13 +151,13 @@ spotbugs.home_dir - Location of the spotbugs tool. If not set, spotb
</copy>
</target>

<target name="clang_format" depends="install" if="clang_format.exe_file">
<target name="clang_format" depends="install" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down
14 changes: 7 additions & 7 deletions compiler/extensions/java/runtime/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ relational.sqlite.jar_file - SQLite JDBC jar file.
Default is "../../../../3rdparty/java/sqlitejdbc-3.39.4.jar".
relational.validation - Flag whether the support for low level validation is included.
Default is "yes".
clang_format.exe_file - Clang-format executable file. If not set, clang-format is not run.
clang_format.exec_file - Clang-format executable file. If not set, clang-format is not run.
spotbugs.home_dir - Location of the spotbugs tool. If not set, spotbugs is not run.
-->
Expand Down Expand Up @@ -209,13 +209,13 @@ spotbugs.home_dir - Location of the spotbugs tool. If not set, spo
overwrite="true"/>
</target>

<target name="clang_format" depends="install" if="clang_format.exe_file">
<target name="clang_format" depends="install" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down Expand Up @@ -279,13 +279,13 @@ Command hints to reformat source using clang-format tool:
</javac>
</target>

<target name="test.clang_format" depends="spotbugs, test.compile" if="clang_format.exe_file">
<target name="test.clang_format" depends="spotbugs, test.compile" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down
14 changes: 7 additions & 7 deletions compiler/extensions/python/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ zserio_python.install_dir - Directory where to install Zserio Python Extensi
zserio_core.jar_file - Zserio core jar file used for classpath.
Default is "${zserio_extensions.build_dir}/../core/${ant.java.version}/jar/
zserio_core.jar".
clang_format.exe_file - Clang-format executable file. If not set, clang-format is not run.
clang_format.exec_file - Clang-format executable file. If not set, clang-format is not run.
spotbugs.home_dir - Location of the spotbugs tool. If not set, spotbugs is not run.
-->
Expand Down Expand Up @@ -165,13 +165,13 @@ spotbugs.home_dir - Location of the spotbugs tool. If not set, spotb
</copy>
</target>

<target name="clang_format" depends="install" if="clang_format.exe_file">
<target name="clang_format" depends="install" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down Expand Up @@ -221,13 +221,13 @@ Command hints to reformat source using clang-format tool:
</javac>
</target>

<target name="test.clang_format" depends="spotbugs, test.compile" if="clang_format.exe_file">
<target name="test.clang_format" depends="spotbugs, test.compile" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down
8 changes: 4 additions & 4 deletions compiler/extensions/xml/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ zserio_xml.install_dir - Directory where to install Zserio Doc Extension
zserio_core.jar_file - Zserio core jar file used for classpath.
Default is "${zserio_extensions.build_dir}/../core/${ant.java.version}/jar/
zserio_core.jar".
clang_format.exe_file - Clang-format executable file. If not set, clang-format is not run.
clang_format.exec_file - Clang-format executable file. If not set, clang-format is not run.
spotbugs.home_dir - Location of the spotbugs tool. If not set, spotbugs is not run.
-->
Expand Down Expand Up @@ -150,13 +150,13 @@ spotbugs.home_dir - Location of the spotbugs tool. If not set, spotb
</copy>
</target>

<target name="clang_format" depends="install" if="clang_format.exe_file">
<target name="clang_format" depends="install" if="clang_format.exec_file">
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down
2 changes: 1 addition & 1 deletion scripts/common_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ compile_java()
local ANT_TARGET="$1"; shift

if [ -n "${CLANG_FORMAT_BIN}" ] ; then
ANT_PROPS+=("-Dclang_format.exe_file=${CLANG_FORMAT_BIN}")
ANT_PROPS+=("-Dclang_format.exec_file=${CLANG_FORMAT_BIN}")
fi

if [ -n "${SPOTBUGS_HOME}" ] ; then
Expand Down
2 changes: 1 addition & 1 deletion test/arguments/allow_implicit_arrays/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<testCompile testName="allow_implicit_arrays"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="allow_implicit_arrays"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/arguments/set_top_level_package/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<testCompile testName="set_top_level_package"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="set_top_level_package"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/arguments/with_range_check_code/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<testCompile testName="with_range_check_code"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="with_range_check_code"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/arguments/with_type_info_code/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<testCompile testName="with_type_info_code"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="with_type_info_code"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/arguments/with_validation_code/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<testCompile testName="with_validation_code"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="with_validation_code"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/arguments/without_cross_extension_check/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<testCompile testName="without_cross_extension_check"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="without_cross_extension_check"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/arguments/without_pubsub_code/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<testCompile testName="without_pubsub_code"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="without_pubsub_code"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/arguments/without_service_code/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<testCompile testName="without_service_code"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="without_service_code"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/arguments/without_writer_code/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<testCompile testName="without_writer_code"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="without_writer_code"/>
</target>

Expand Down
6 changes: 3 additions & 3 deletions test/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ zserio.release_dir - Directory where to find Zserio release to test
zserio_java_test.build_root_dir - Build directory where to put generated files.
Default is "../build/test/java".
zserio_java_test.test_suites - Test suites. Default is "**".
clang_format.exe_file - Clang-format executable file. If not set, clang-format is not run.
clang_format.exec_file - Clang-format executable file. If not set, clang-format is not run.
spotbugs.home_dir - Location of the spotbugs tool. If not set, spotbugs is not run.
-->
Expand Down Expand Up @@ -199,11 +199,11 @@ spotbugs.home_dir - Location of the spotbugs tool. If not set, spo
<attribute name="srcPath" default="${@{testName}.base_dir}/java"/>
<sequential>
<echo>
Command hints to reformat source using clang-format tool:
Command hints to reformat source manually using clang-format tool (in case of format errors):
git clang-format
clang-format --style=file -i [SOURCE]
</echo>
<apply executable="${clang_format.exe_file}" failonerror="true">
<apply executable="${clang_format.exec_file}" failonerror="true">
<arg value="--style=file"/>
<arg value="--dry-run"/>
<arg value="--Werror"/>
Expand Down
2 changes: 1 addition & 1 deletion test/errors/alignment_error/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<testCompile testName="alignment_error" srcPath="${alignment_error.base_dir}/java"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="alignment_error" srcPath="${alignment_error.base_dir}/java"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/errors/array_types_error/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<testCompile testName="array_types_error" srcPath="${array_types_error.base_dir}/java"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="array_types_error" srcPath="${array_types_error.base_dir}/java"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/errors/bitmask_types_error/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<testCompile testName="bitmask_types_error" srcPath="${bitmask_types_error.base_dir}/java"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="bitmask_types_error" srcPath="${bitmask_types_error.base_dir}/java"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion test/errors/builtin_types_error/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<testCompile testName="builtin_types_error" srcPath="${builtin_types_error.base_dir}/java"/>
</target>

<target name="clang_format" depends="compile" if="clang_format.exe_file">
<target name="clang_format" depends="compile" if="clang_format.exec_file">
<testClangFormat testName="builtin_types_error" srcPath="${builtin_types_error.base_dir}/java"/>
</target>

Expand Down
Loading

0 comments on commit 3b4f6e9

Please sign in to comment.