tschneidereit / SwiftSuspenders

NOTE: Find the offical repo at http://github.com/robotlegs/swiftsuspenders
https://github.com/robotlegs/swiftsuspenders
MIT License
280 stars 89 forks source link

Modify build Script to preserve code comments in generated SWC #91

Closed BigPhilCombo closed 9 years ago

BigPhilCombo commented 9 years ago

By modifying the following node the in the build.xml file - code comments are added back to the generated SWC

  <!-- Build Documentation -->
  <target name="asdoc" depends="compile">
    <echo>[create-docs] Generating ASDOC documentation</echo>
    <tstamp>
      <format property="docgen.time" pattern="MM/dd/yyyy hh:mm aa" unit="hour"/>
    </tstamp>
      <asdoc output="${doc.loc}" lenient="true" failonerror="true" keep-xml="true" skip-xsl="true" fork="true">
          <compiler.source-path path-element="${main.src.loc}" />
          <doc-sources path-element="${main.src.loc}"/>         
      </asdoc>
      <zip destfile="${bin.loc}/${project.name.versioned}.swc" update="true">
          <zipfileset dir="${doc.loc}/tempdita" prefix="docs">
            <include name="*.*"/>
            <exclude name="ASDoc_Config.xml" />
            <exclude name="overviews.xml" />
          </zipfileset>
        </zip>
    <echo>[create-docs] ASDOC documentation generated successfully</echo>
  </target>
BigPhilCombo commented 9 years ago

Sorry I did not realize it would include other users edits. I'll just add it to the Issues list.