[英]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. 我想知道Ant4Eclipse是否有可能通过buildJdtProject任务从编译中排除某些文件夹或文件。
<buildJdtProject workspaceId="myWorkspace" projectName="@{projectName}" targetLevel="1.6" />
Best regards, 最好的祝福,
Florent 弗洛朗
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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.