Anche se avrei preferito non creare un file, che alla fine è andato con la seguente soluzione:
Il compito SQL si chiama come segue
<sql ... print="yes" output="temp.properties"
expandProperties="true" showheaders="false" showtrailers="false" >
<![CDATA[
select 'current.sp.version=' || NAME from SERVICE_PACK;
select 'current.major.version=' || NAME from VERSION;
]]>
</sql>
Il file properties generato conterrà:
current.sp.version=03
current.major.version=5
Poi basta caricare il file delle proprietà ed eliminarlo:
<property file="temp.properties" />
<delete file="temp.properties" />
<echo message="Current service pack version: ${current.sp.version}" />
<echo message="Current major version: ${current.major.version}" />
Questo funziona, e tutto è proprio lì nella sceneggiatura della formica (anche se non è la cosa più bella del mondo!).
ciao! 'seleziona 'deployment_instruction =' deployment_instruction da Patch_spd dove nome_patch = '$ {nome_patch}'' sto eseguendo sopra la query ma nel mio file delle proprietà stampa solo pls help me 'deployment_instruction =' nient'altro – picnic4u
Esegui la query direttamente contro il tuo database e verificare che produca il risultato corretto? – zakvdm