Skip to content

Commit

Permalink
Fix find exec, because three backslashes, that's why
Browse files Browse the repository at this point in the history
  • Loading branch information
Etheryte committed Feb 27, 2025
1 parent 481d4f7 commit 318658c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions java/manager-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -663,24 +663,22 @@
<echo message="Applying all schema migrations..."/>
<sequential>
<deploy-to-temp-directory source="${schema.src.dir}">
<!-- TODO: Reenable once the exec works correctly -->
<!-- <echo message="Stopping spacewalk-service..." /> -->
<!-- <deploy-execute command="spacewalk-service stop" /> -->
<echo message="Stopping spacewalk-service..." />
<deploy-execute command="spacewalk-service stop" />

<property name="match" value="susemanager-schema-5.*" />
<property name="argline" value="-c &quot;${deploy.executor.command} ${deploy.executor.parameters} 'find ${deploy.temp.dir}/${match} -type f -name &quot;*.sql&quot; -exec spacewalk-sql --select-mode-direct {} +'&quot;" />
<property name="argline" value="-c &quot;${deploy.executor.command} ${deploy.executor.parameters} 'find ${deploy.temp.dir}/${match} -type f -name &quot;*.sql&quot; -exec spacewalk-sql --select-mode-direct {} \\\;'&quot;" />

<local name="result" />
<echo message="Executing" />
<echo message="${argline}" />
<echo message="Finding and applying migrations with:" level="verbose" />
<echo message="${argline}" level="verbose" />
<local name="result" />
<exec failonerror="true" executable="sh" logerror="true" outputproperty="result">
<arg line="${argline}"/>
</exec>
<echo message="${result}" />

<!-- TODO: Reenable once the exec works correctly -->
<!-- <echo message="Starting spacewalk-service..." /> -->
<!-- <deploy-execute command="spacewalk-service start" /> -->
<echo message="Starting spacewalk-service..." />
<deploy-execute command="spacewalk-service start" />
</deploy-to-temp-directory>
</sequential>
</target>
Expand Down

0 comments on commit 318658c

Please sign in to comment.