天天看點

Eclipse import ant project

Try the following method, got it work for me.

  1. Make sure you have ant installed
  2. Open Eclipse, select File > New > Project
  3. Select "Java Project from Existing Ant Build File"
  4. Download ant-contrib.jar, then unzip it and put the jar file to where you prefer.
  5. Add the ant-contrib jar file to Eclipse: Window>Preferences>Ant>Runtime>Global Entries>Add external jar
  6. Configure your build.properties. (copy and edit build.properties.example to build.properties)
  7. Now open build.xml in editor in Eclipse then hit Run
  8. Add the built jar files in your project properties, Project Properties>Java Build Path>Add JAR

版權聲明:本文為CSDN部落客「weixin_34256074」的原創文章,遵循CC 4.0 BY-SA版權協定,轉載請附上原文出處連結及本聲明。

原文連結:https://blog.csdn.net/weixin_34256074/article/details/92216010

繼續閱讀