hi all

i have builders in my eclipse plugins that download the dependent mvn 
artifacts into a certain folder if i do a project clean.
the problem is, that i want to download the classes and the sources jar 
files and i didn't managed to do both with one builder.

if i use the goal copy-dependencies with no -Dclassifier argument, it 
downloads the classes.jar.
if i use it with -Dclassifier=sources it downloads the sources.jar

here is my builder with dependency:copy-dependencies -Dclassifier=sources

<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration 
type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" 
value="true"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" 
value="false"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" 
value="--update-snapshots -DoutputDirectory=lib -DexcludeTransitive=true 
dependency:copy-dependencies -Dclassifier=sources"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" 
value="full,"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" 
value="${project}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" 
value="${build_project}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" 
value="${system_path:mvn.bat}"/>
<booleanAttribute 
key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" 
value="true"/>
</launchConfiguration>

i could write two builders, one with dependency:copy-dependencies and no 
-Dclassifier argument and on with -Dclassifier=sources, but that's what i 
want to avoid.
is there a possibility to dowload both jars?

regards david

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to