Skip to content

Commit

Permalink
Fix ODS export
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-jung committed Jan 7, 2025
1 parent 93b8410 commit cc62fb7
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 282 deletions.
179 changes: 179 additions & 0 deletions Terminology_Termmap.framework
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,185 @@
<null/>
</field>
</poPatch>
<poPatch>
<field name="fieldPath">
<String>scenarios</String>
</field>
<field name="index">
<Integer>14</Integer>
</field>
<field name="value">
<antScenario>
<field name="additionalAntArgs">
<String></String>
</field>
<field name="buildTarget">
<String></String>
</field>
<field name="buildFilePath">
<String>${frameworkDir}/ant/build_ods-export.xml</String>
</field>
<field name="ditaParams">
<list>
<antParameter>
<field name="name">
<String>language</String>
</field>
<field name="description">
<String></String>
</field>
<field name="value">
<String>${ask('Language', input_type, 'de-DE')}</String>
</field>
<field name="defaultValue">
<null/>
</field>
<field name="type">
<Integer>5</Integer>
</field>
<field name="possibleValues">
<null/>
</field>
<field name="possibleValuesDescriptions">
<null/>
</field>
</antParameter>
<antParameter>
<field name="name">
<String>termmap</String>
</field>
<field name="description">
<String></String>
</field>
<field name="value">
<String>${cf}</String>
</field>
<field name="defaultValue">
<null/>
</field>
<field name="type">
<Integer>5</Integer>
</field>
<field name="possibleValues">
<null/>
</field>
<field name="possibleValuesDescriptions">
<null/>
</field>
</antParameter>
</list>
</field>
<field name="jvmArgs">
<String>-Xmx256m</String>
</field>
<field name="useCustomJavaHome">
<Boolean>false</Boolean>
</field>
<field name="customJavaHomeDir">
<String></String>
</field>
<field name="useCustomANTHome">
<Boolean>false</Boolean>
</field>
<field name="customANTHomeDir">
<String></String>
</field>
<field name="workingDir">
<String>${frameworkDir}/ant</String>
</field>
<field name="showConsoleAlways">
<Boolean>true</Boolean>
</field>
<field name="advancedOptionsMap">
<null/>
</field>
<field name="name">
<String>ODS Export</String>
</field>
<field name="baseURL">
<null/>
</field>
<field name="footerURL">
<null/>
</field>
<field name="fOPMethod">
<null/>
</field>
<field name="fOProcessorName">
<null/>
</field>
<field name="headerURL">
<null/>
</field>
<field name="inputXSLURL">
<null/>
</field>
<field name="inputXMLURL">
<null/>
</field>
<field name="defaultScenario">
<Boolean>false</Boolean>
</field>
<field name="isFOPPerforming">
<Boolean>false</Boolean>
</field>
<field name="type">
<String>ANT</String>
</field>
<field name="saveAs">
<Boolean>true</Boolean>
</field>
<field name="openInBrowser">
<Boolean>true</Boolean>
</field>
<field name="outputResource">
<null/>
</field>
<field name="openOtherLocationInBrowser">
<Boolean>true</Boolean>
</field>
<field name="locationToOpenInBrowserURL">
<String></String>
</field>
<field name="openInEditor">
<Boolean>false</Boolean>
</field>
<field name="showInHTMLPane">
<Boolean>false</Boolean>
</field>
<field name="showInXMLPane">
<Boolean>false</Boolean>
</field>
<field name="showInSVGPane">
<Boolean>false</Boolean>
</field>
<field name="showInResultSetPane">
<Boolean>false</Boolean>
</field>
<field name="useXSLTInput">
<Boolean>false</Boolean>
</field>
<field name="xsltParams">
<list/>
</field>
<field name="cascadingStylesheets">
<String-array/>
</field>
<field name="xslTransformer">
<String>ANT</String>
</field>
<field name="extensionURLs">
<String-array/>
</field>
</antScenario>
</field>
<field name="patchHandling">
<String>addIndex</String>
</field>
<field name="anchor">
<null/>
</field>
</poPatch>
<poPatch>
<field name="fieldPath">
<String>scenarios</String>
Expand Down
23 changes: 21 additions & 2 deletions ant/build_ods-export.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
================================================================================
-->
<property environment="env"/>
<property name="debugging.mode" value="true"/>
<property name="debugging.mode" value="false"/>
<condition property="dbg">
<equals arg1="${debugging.mode}" arg2="true"/>
</condition>
Expand Down Expand Up @@ -87,7 +87,26 @@
<copy file="../templates/export.ods" tofile="${ods-export.temp.dir}${file.separator}export.ods"/>

<zip destfile="${ods-export.temp.dir}${file.separator}export.ods" basedir="${ods.dir}" compress="false" update="true"/>
<echo if:true="${debugging.mode}" message="+ [DEBUG] Created ODS file '${ods-export.temp.dir}${file.separator}export.ods'"/>
<echo message="Created ODS file '${ods-export.temp.dir}${file.separator}export.ods'"/>

<!-- Open file -->
<condition property="linux">
<os family="unix"/>
</condition>
<exec if:true="${linux}" executable="xdg-open">
<arg value="${ods-export.temp.dir}${file.separator}export.ods"/>
</exec>
<condition property="windows">
<os family="windows"/>
</condition>
<exec if:true="${windows}" executable="cmd.exe">
<arg value="/c" />
<arg value="start" />
<arg value="" /> <!-- Empty argument for a new command window -->
<!--<arg value="path\\to\\your\\file"/>-->
<arg value="${ods-export.temp.dir}${file.separator}export.ods"/>
</exec>

</target>

</project>
Loading

0 comments on commit cc62fb7

Please sign in to comment.