| | 111 | * FCKeditor installation |
| | 112 | |
| | 113 | Although the public distribution is fine, it still contains a lot of superfluous |
| | 114 | files for a Java environment. Use the following <<<Ant>>> target on the FCKeditor |
| | 115 | zip file (1,25 MiB) to create a clean distribution zip file (984 KiB). |
| | 116 | |
| | 117 | +----------------------------------------------------------------------------------+ |
| | 118 | <target name="clean-fckeditor" description="Creates a clean FCKeditor distribution"> |
| | 119 | <!-- Adapt properties to your needs --> |
| | 120 | <property name="fckeditor-tmp" location="fckeditor-tmp" /> |
| | 121 | <property name="fckeditor-basename" value="FCKeditor_2.6" /> |
| | 122 | <property name="fckeditor-destfile" value="${fckeditor-basename}_clean.zip" /> |
| | 123 | |
| | 124 | <delete file="${fckeditor-destfile}" /> |
| | 125 | <unzip dest="${fckeditor-tmp}" src="${fckeditor-basename}.zip" /> |
| | 126 | <zip destfile="${fckeditor-destfile}"> |
| | 127 | <zipfileset dir="${fckeditor-tmp}/fckeditor" prefix="fckeditor"> |
| | 128 | <include name="_samples/_plugins/" /> |
| | 129 | <include name="editor/" /> |
| | 130 | <include name="fckconfig.js" /> |
| | 131 | <include name="*.xml" /> |
| | 132 | <exclude name="editor/filemanager/connectors/" /> |
| | 133 | </zipfileset> |
| | 134 | </zip> |
| | 135 | <delete dir="${fckeditor-tmp}" /> |
| | 136 | </target> |
| | 137 | +----------------------------------------------------------------------------------+ |
| | 138 | |