如何使定制Ant任务? [英] How to make custom ant task?

查看:226
本文介绍了如何使定制Ant任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习被称为面貌新的即将到来的语言。这种语言几乎是一样的开源的JavaFX 1.3。我的问题是面貌有它自己的编译器和编译面貌的文件,我需要使用'visagec filename.visage和运行的类文件生成我需要使用'面貌的文件名。我希望此任务使用Ant脚本自动化。我还需要在类路径的一些jar文件,而这样做。是否有人可以让我知道如何编写自定义ant脚本为上述语言。我已经在我的环境变量添加VISAGE_HOME。

I am learning a new upcoming language known as Visage. This language is almost the same as the Open Source JavaFX 1.3 . My problem is that Visage has its own compiler and to compile a visage file I need to use 'visagec filename.visage' and the run the class file generated I need to use 'visage filename'. I want this task to be automated using the ant script. I also need to include some jar files in the classpath while doing so. Can someone please let me know how to write a custom ant script for the above language. I have already added VISAGE_HOME in my environment variables.

推荐答案

亚历克斯提到的资源是真正有用的,我很惊讶地看到它是多么容易在这里做一点改变,存在,并通过后援链接帮助我是: -

The resources mentioned by Alex were really useful and I was amazed to see how easy it was to make a little changes here and there and get through it.The links that helped me were:-

  • ant.apache.org/manual/Tasks/scriptdef.htm
  • ant.apache.org/manual/develop.html
  • ant.apache.org/manual/tutorial-writing-tasks.html

这篇关于如何使定制Ant任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆