In Eclipse, how can I exclude some files (maybe based on the .svn extension or filename) from being copied to the output folder?

前端 未结 5 2075
野趣味
野趣味 2020-12-24 06:27

I\'m developing a Java application using Eclipse. My project has two source directories that are both built and then some files are copied into the output folder. From the o

相关标签:
5条回答
  • 2020-12-24 06:54

    Have you tried to add

    **/.svn/

    to the Exclusion patterns at the Source preferences of the project's build path settings?

    0 讨论(0)
  • 2020-12-24 06:55

    Right click on the source file > Build Path > Exclude.

    0 讨论(0)
  • 2020-12-24 06:59

    You could also try installing the Subversion plugin (Subclipse) for Eclipse.

    0 讨论(0)
  • 2020-12-24 06:59

    Sure, that easy: at Project Properties -- Java Build Path you can add exclusion filters on every source folder. There, you can add an exclusion pattern as *.svn

    0 讨论(0)
  • 2020-12-24 07:15

    That sounds like your building process is using versionned directory within your subversion workspace.

    Should you not have your 'output' folder and/or your 'tst' folder be made 'private' ? (that is without any .svn, and ignored by subversion)

    0 讨论(0)
提交回复
热议问题