fedora-java / javapackages

Macros and scripts for Java packaging support
Other
7 stars 15 forks source link

%mvn_install should not start with empty line #13

Closed mizdebsk closed 8 years ago

mizdebsk commented 8 years ago

%mvn_install macro starts with a new line, which makes it more difficult to use in SCL. If it did not start with NL then it would be possible to run it this way:

%{?scl:scl enable %{scl} --} %mvn_install

which IMHO is nicer than current way:

%{?scl:scl enable %{scl} - <<"EOF"}
set -e -x
%mvn_install
%{?scl:EOF}

All other macros (except for legacy %add_maven_depmap and %jpackage_script) can already be used this way.