Use Ant to make you programs (7)

xiaoxiao2021-03-06  97

Summary: How to use this ANT environment

Now there is an entire ANT environment, put it in the work / common / directory, the configuration file is also

Completed, you can start working.

Steps to conduct projects:

1. Give the project a loud name, just called Proj :)

2. CD to WORK /

3. MKDir Proj

4. Copy Work / Common / Build.xml and Build.properties files to Proj

5. Modify Build.Properties to change the items related to the project, such as what is the name.

6. CD to Proj

7. Ant usage (you can see how to use it)

8. Ant Prepare (built the directory structure)

9. Ok, start knocking the code. Create a directory COM / VITULAR / PROJ /

10. Establish a Hello.java file in src / main / com / vitular / proj /.

11. Ant Checkstyle (check if it is qualified)

Discover less package.html

And not let me create a PUBLIC's constructor. (As long as it contains the main () function it will say this)

I have to modify it, and I will check it again.

11. Ant Compile (Compiled)

12. ANT JAR (packaged)

----------------------

13. ... The rest is not coming.

转载请注明原文地址:https://www.9cbs.com/read-101431.html

New Post(0)