我想知道Ant4Eclipse是否有可能通过buildJdtProject任务从编译中排除某些文件夹或文件。
<buildJdtProject workspaceId="myWorkspace" projectName="@{projectName}" targetLevel="1.6" />
最好的祝福,
弗洛朗
解决方案如下:
使用工作空间定义,然后在其中排除您的文件夹。
<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>