Delildor
Delildor

Reputation: 346

Ant4Eclipse - exclude some source folder on buildJdtProject task

I would like to know if it's possible with Ant4Eclipse to exclude some folders, or files from compilation with the buildJdtProject task.

<buildJdtProject workspaceId="myWorkspace" projectName="@{projectName}" targetLevel="1.6" />

Best regards,

Florent

Upvotes: 0

Views: 125

Answers (1)

robig
robig

Reputation: 26

Use the workspace definition and exclude your folder there.

<dirset dir="${eclipse.workspace.dir}" id="workspacedirset">
    <!-- exclude your directory-->
    <exclude name="EXCLUDEME"/>
    <!-- include all others -->
    <include name="**"/>
</dirset>
<ant4eclipse:workspaceDefinition id="myworkspace">
    <dirset refid="worspacedirset"/>
</ant4eclipse:workspaceDefinition>

Upvotes: 1

Related Questions