![]() |
|
|
|
|
Change By:
|
Lance Norskog
(26/Aug/12 11:03)
|
|
Comment:
|
Here is another way: repacking dependent jars into all contrib dist/ jars. I've done an experiment with analysis-extras, and it takes 4 seconds to repack the classes from the dependent jars into apache-solr-analysis-extras-5.0-SNAPSHOT.jar.
Add this to solr/contrib/analysis-extras/build.xml: {code:xml} <target name="addjars"> <zip destfile="../../dist/apache-solr-analysis-extras-4.0-SNAPSHOT.jar" update="true"> <zipfileset src=""> <zipfileset src=""> <zipfileset src=""> <zipfileset src=""> <zipfileset src=""> <zipfileset src=""> <zipfileset src=""> <zipfileset src=""> </zip> </target>
{code}
Run 'ant dist addjars'. The dist jar goes from 20k to 15M. But, it's 15M in one deployable file. I don't know what to do about META-INF files in the absorbed libraries. This approach just preserves the manifest file.
This approach needs a little rearranging of the order of the build steps. There is no place visible to the contrib build.xml where the solr/build dist jar is finished, but not yet copied to dist/.
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]
For additional commands, e-mail:
[email protected]