ant

Workaround for Apache Ant Install Bug

廉价感情. 提交于 2019-12-29 04:54:28
问题 Can someone please help with instructions for a workaround on the Apache Ant installation bug in Windows? The snippet below describes one of three workarounds. If you are able to successfully get one of these to work, can you please share? http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696 (1) Run with -Djava.net.preferIPv4Stack=true - add a firewall exception for the Java binary. (2) Run with -Djava.net.preferIPv4Stack=true (which disables IPv6 and uses AF_INET sockets exclusively)

Ant string functions?

只愿长相守 提交于 2019-12-29 04:43:19
问题 Does Ant have any way of doing string uppercase/lowercase/captialize/uncaptialize string manipulations? I looked at PropertyRegex but I don't believe the last two are possible with that. Is that anything else? 回答1: From this thread, use an Ant <script> task: <target name="capitalize"> <property name="foo" value="This is a normal line that doesn't say much"/> <!-- Using Javascript functions to convert the string --> <script language="javascript"> <![CDATA[ // getting the value sentence =

Use pure Ant to search if list of files exists and take action based on condition

我们两清 提交于 2019-12-29 02:07:07
问题 User passes a list of files in an XML file, below will be the sample: <property-bundle name = "abc"> <action>clean</action> <target-location>/vst/property/pog/</target-location> <file-name>test1.props</file-name> <file-name>test2.props</file-name> <file-name>test3.props</file-name> </property-bundle> Now based on that action remove, I have to incorporate logic in build.xml to delete the files in the directory , but for that I want to perform a validation only if the file exists then remove or

Ant Design Pro 学习二 新建菜单-布局

蓝咒 提交于 2019-12-29 00:23:57
新建布局,注意格式: src/common/nav.js 中增加 { component: dynamicWrapper(app, [], () => import('/path/to/NewLayout')), // 新建的模板,使用`dynamic`动态引入 layout: 'NewLayout', // 标记,生成路由时会用到 children: [{ name: '新布局', // 新布局下的页面都可以放到这里 icon: 'new',        //小图标 path: 'new',        //这里是routes(业务页面入口和常用模板)下的目录 children: [    //新的页面    {   name: '新页面',   path: 'new-page',  //小图标   component: dynamicWrapper(app, ['NewPageModel'], () => import('/path/to/NewPage')),   }  ], }], } 新建页面:src/routes 下新建 NewPage.js NewPage.less { name: '测试一下', path: 'new', component: dynamicWrapper(app, ['list'], () => import('../routes/New

gradle项目构建学习笔记

こ雲淡風輕ζ 提交于 2019-12-28 17:23:55
简介 :自动化构建工具的作用:机器自动进行依赖管理,测试、打包、发布。 主流的构建工具有:ant、maven、Gradle。 ant主要是编译、测试、打包;maven在ant基础上加入了依赖管理和发布;gradle结合了两者的优点–Ant的灵活性和Maven的功能。 gradle不使用xml文件,它使用基于Groovy的DSL。由于该语言专门用于解决特定的域问题,因此这导致较小的配置文件较少混乱。Gradle的配置文件通常称为build.gradle。 安装 : 1.确保已经安装jdk 2.从gradle官网下载gradle ,链接为: link . 3.下载后解压,配置环境变量,在命令行窗口输入 gradle -v 确保安装成功。 Groovy :是基于java虚拟机的一种敏捷的动态语言,它是一种成熟的面向对象编程语言,既可以用于面向对象编程 ,又可以用作纯粹的脚本语言。使用该种语言不必编写过多的代码,同时又具有闭包和动态语言中的其他特性。 与java比较 : 1.groovy完全兼容java语法 2.分号是可选的 3.类、方法默认是public的。 4.编译器给属性自动添加getter/setter方法 5.属性可以直接用点号获取 6.最后一个表达式的值会被作为返回值 7.==等同于equals(),不会有NullPointerExceptions Groovy高效特性 : 1

Compile failed; see the compiler error output for details

 ̄綄美尐妖づ 提交于 2019-12-28 16:47:27
问题 When I tried to compile build.xml file, below error is hitting: BUILD FAILED C:\Users\workspace\testrepo\src\build.xml:36: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1150) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke

ant debugging in eclipse

冷暖自知 提交于 2019-12-28 12:03:14
问题 I would like to know about the debugging capabilities of ANT using eclipse. Basically I have an ANT build script written by a colleague and I wanted to step through each target to see what are the various tasks that are beings called. 回答1: You can do this in Eclipse with these steps: Be sure to open your build file in the ANT editor (right click on build file -> Open with -> Ant editor). Double click in the left margin of your build file where you want breakpoint. Open the Ant view (Window ->

ant debugging in eclipse

强颜欢笑 提交于 2019-12-28 12:02:18
问题 I would like to know about the debugging capabilities of ANT using eclipse. Basically I have an ANT build script written by a colleague and I wanted to step through each target to see what are the various tasks that are beings called. 回答1: You can do this in Eclipse with these steps: Be sure to open your build file in the ANT editor (right click on build file -> Open with -> Ant editor). Double click in the left margin of your build file where you want breakpoint. Open the Ant view (Window ->

ant eclipse使用

自闭症网瘾萝莉.ら 提交于 2019-12-28 09:47:44
引用: http://www.cnblogs.com/freeskycd/articles/1677679.html 作为一个Java开发者,你有时可能感受到Java格式的严格。丢失 import声明,忘记声明变量,没有分号,语法混淆,以及文本编辑器的排版都可能引起Java命令行编译器 javac 的反应,其结果就是显示若干页的错误信息。 错误信息告诉你 javac 知道了错误,但是为什么不解决这个问题,让你得以继续工作? javac 不能解决这个问题; 要做到这一点,你可以用一个IDE,在编译之前捕获错误,并给出建议。Java现急需好的IDE,目前Java最好的IDE是Eclipse,如图1。                  图1 Eclipse 像其它许多Java IDEs,Eclipse免费下载,但是Eclipse背后有许多优势,这是IBM的力量,据说花费4000万美元开发。现在,它是一个开放源码的项目,主要是在IBM软件开发,但部分是由名为 Eclipse.org 的软件组织。 提示:如果想阅读更多关于Eclipse,查看 Eclipse的帮助。 获得Eclipse Eclipse免费下载:你所要做的是浏览 http://www.eclipse.org/downloads . 在网页上选择一个可下载的镜像. 当你做什么,你会提出一系列的可下载各种类型: 当你打开网页

Building JAR that includes all its dependencies

与世无争的帅哥 提交于 2019-12-28 06:32:08
问题 This is probably a really fundamental question, but I'm afraid I don't know much about Java and I couldn't find the answer anywhere. I'm attempting to build an Ant library which depends on the TFS SDK. I followed the guide to setting up a project, but when I export it as a JAR and try to run a task using ANT I get the following error: java.lang.NoClassDefFoundError: /com/microsoft/tfs/core/util/TFSUser I realise I could put the TFS SDK JAR in my ANT lib folder, but if possible I'd like my JAR