eclipse 导入ant项目之后,run as ant build

eclipse 导入ant项目之后,右键选择build.xml, run as ant build 为什么浏览器不出现运行界面?就像javaweb项目 run as server之后浏览器就默认运行主页了
。难道run as ant build就是用来编译的,还要手动把项目复制到tomcat下面才能运行吗?不能直接在eclipse里面运行ant项目吗?

1个回答

要看你build.xml里面写的是什么

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
eclipse怎么导入ant项目?
eclipse怎么道路ant项目?rnrn最近在看java编程思想这本书,在网上下载的课本源码,导入到eclipse老是出错...rn各位朋友都是怎么处理的呀?有没有好的处理办法?rn
Eclipse ant build failed
提示:nBUILD FAILEDn/workspace/xxx/build.xml:49: Cannot find /workspace/xxx/C:/android-sdk-windows/tools/ant/build.xml imported from /workspace/xxx/build.xmlnn
eclipse导入ant工程
不同于maven可以直接对IDE的支持(mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavaDocs=true),ant并不具有这样的命令.这样如果eclipse需要import ant工程需要加入两个.classPath .project文件。如下: .project your_project-name ...
eclipse中ant build 控制台乱码解决解决方法(ant执行java)
有如下ant的target,为了执行java代码 <target name="shanhy" depends="compile"> <!-- 指明要调用的java类的名称 --> <java classname="Test" fork="true" failonerror="true"> <!-...
ant ant ant ant
ant ant ant antant ant ant antant ant ant ant
cooja ant run faild
刚开始接触contiki,下载了InstantContiki3.0,(有个另外的疑问,能找到的最新版contiki内核版本不是contiki3.0,而是contiki master,其中有加入了CC1310,也就是支持的微处理器不仅有CC26XX,还有cc13xx,但是最新版的CONTIKI开发环境里面contiki3.0中,内核版本是3.0,而不是master,CPU只支持CC26XX,而没有cc13xx,我使用cc1310硬件平台时会有影响吗?)安装在我笔记本原有的虚拟机上,按照http://contiki-os.org/start.html 到ant run时失败,报错为 could not find the MSPsim build file ,did you run" git submodule update --init"?按照提示,仍旧报同样的错误。
Ant 问题 (ant converter) build failed
DOS下:rn>ant converterrn提示如下:rnBuildfile: build.xmlrnrnBUILD FAILEDrnTarget "converter" does not exist in the project "j2ee-tutorial-ejb".rnrnTotal time: 0 seconds
eclipse ant
eclipse ant打包,所需要的内容ant 文件夹,里面的内容请根据自己的目录,秘钥进行修改 然后放进工程根目录即可
ant 编译失败:ant build faild
我在使用ant 编译程序时出现了以下问题:rnrnBUILD FAILEDrnC:\Documents and Settings\Administrator\桌面\sslexplorer-1.0.0_RC17\sslexplorer\build.xml:699: The following error occurred while executing this line:rnC:\Documents and Settings\Administrator\桌面\sslexplorer-1.0.0_RC17\sslexplorer-community-tunnels\build.xml:110: Unable to create directory as a file already exists with that name: C:\Documents and Settings\Administrator\桌面\sslexplorer-1.0.0_RC17\sslexplorer-community-tunnels\build\classesrn错错误行是:rn rn和rn rn rn rnrn??????????找了很久没找出原因,错因是这样的:我在ant install时,已经编译了一半机器被卡死了,动不了,我就强制关机了,结果打开机器就无法编译了,又安全重启了好几遍还是一样。
Ant在eclipse中搭建项目
后新建一个 HelloWorld 类,我们下面就是将这个项目通过 Ant 来编译,打包,类的代码列表如清单 1 所示: package java; public class Helloworld { public String sayHellow(String name){ return "Hello"+name; } } 然后再新建一个 build 文件,命名为 build.xm
ant build 项目实例
NULL 博文链接:https://tendyming.iteye.com/blog/1851488
Ant最新版 build工具
Ant是一种基于Java的build工具。理论上来说,它有些类似于(Unix)C中的make ,但没有make的缺陷。目前的最新版本为:Ant 1.8.1。
ant的build配置文件
ant的build配置文件;
Java Ant build详解
Java Ant build详解,详细解释了build.xml中各元素的意思。
Ant 的最完整build
介绍JAVA 自动构造技术Ant的配置使用。
ant build fail
我运行ant来测试testng.现在报错如下:rntestng doesn't support the 'fork' attribute;rnrn我的配置文件如下:rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn
ant build 文件解说
ant build解说。用于分析原理结果之用。
ant的build文件说明
实际开发中的ant编译脚本代码,拥有完善的结构,只需要修改开始几个字段即可使用。
ant build script
NULL 博文链接:https://nethub2.iteye.com/blog/2023197
项目部署&Ant build
前段时间在做项目时遇到了关于工程打包的问题,由于以前从未接触过这方面的东西,而且项目时间又比较急,所以只是匆匆找了下问题所在,并未比较全面地学习项目部署的相关知识。这几天回来再看这方面的东西,所获良多,故在此记录以下几个个人觉得关于ant&build比较好的文章。 —————————————————————————————————————————————— build.xml文件详解: htt
Ant build出现错误
错误信息如下:rn.rn.rn[springdoclet] xdoclet.template.TemplateException: Invoking method in class xdoclet.tagshandler.ClassTagsHandler failed: forAllClasses, line=112 of template file: file:/D:/Project/ices/scripts/dao_spring_xml.xdt, exception: nullrn[springdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:580)rn[springdoclet] at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:965)rn[springdoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:932)rn[springdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:472)rn[springdoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:348)rn[springdoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:415)rn[springdoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:562)rn[springdoclet] at xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:618)rn[springdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:599)rn[springdoclet] at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:227)rn[springdoclet] at xdoclet.modules.spring.SpringXmlSubTask.execute(SpringXmlSubTask.java:111)rn[springdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)rn[springdoclet] at xdoclet.DocletTask.start(DocletTask.java:468)rn[springdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105)rn[springdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)rn[springdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn[springdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn[springdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn[springdoclet] at java.lang.reflect.Method.invoke(Method.java:585)rn[springdoclet] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)rn[springdoclet] at org.apache.tools.ant.Task.perform(Task.java:348)rn[springdoclet] at org.apache.tools.ant.Target.execute(Target.java:357)rn[springdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:385)rn[springdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)rn[springdoclet] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)rn[springdoclet] at org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)rn[springdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)rn[springdoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)rn[springdoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)rn[springdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)rn[springdoclet] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)rn[springdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn[springdoclet] at java.lang.reflect.Method.invoke(Method.java:585)rn[springdoclet] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)rn[springdoclet] at org.apache.tools.ant.Task.perform(Task.java:348)rn[springdoclet] at org.apache.tools.ant.Target.execute(Target.java:357)rn[springdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:385)rn[springdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)rn[springdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)rn[springdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)rn[springdoclet] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)rn[springdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)rn[springdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)rn[springdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)rn[springdoclet] D:\Project\ices\scripts\build.xml:107: XDoclet failed.rn[springdoclet] at xdoclet.DocletTask.start(DocletTask.java:471)rn[springdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105)rn[springdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)rn[springdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn[springdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn[springdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn[springdoclet] at java.lang.reflect.Method.invoke(Method.java:585)rn[springdoclet] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)rn[springdoclet] at org.apache.tools.ant.Task.perform(Task.java:348)rn[springdoclet] at org.apache.tools.ant.Target.execute(Target.java:357)rn[springdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:385)rn[springdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)rn[springdoclet] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)rn[springdoclet] at org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)rn[springdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)rn[springdoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)rn[springdoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)rn[springdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)rn[springdoclet] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)rn[springdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn[springdoclet] at java.lang.reflect.Method.invoke(Method.java:585)rn[springdoclet] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)rn[springdoclet] at org.apache.tools.ant.Task.perform(Task.java:348)rn[springdoclet] at org.apache.tools.ant.Target.execute(Target.java:357)rn[springdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:385)rn[springdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)rn[springdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)rn[springdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)rn[springdoclet] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)rn[springdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)rn[springdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)rn[springdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)rn[springdoclet] Caused by: xdoclet.XDocletException: Running XDoclet failed.rn[springdoclet] at xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:629)rn[springdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:599)rn[springdoclet] at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:227)rn[springdoclet] at xdoclet.modules.spring.SpringXmlSubTask.execute(SpringXmlSubTask.java:111)rn[springdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)rn[springdoclet] at xdoclet.DocletTask.start(DocletTask.java:468)rn[springdoclet] ... 31 morern[springdoclet] --- Nested Exception ---rn[springdoclet] xdoclet.XDocletException: Running XDoclet failed.rn.rn.rn.rnrnrn请问出现这个问题是设置问题还是代码问题?
ant build jrxml
jrxml中有中文,执行ant build的电脑的在国外,即系统环境是英文环境rnbuild.xml的代码如下:rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn最终导致PDF 报表中的中文变成了乱码,因为ant用的是系统语言指定的encoding,在这里可否自己指定?如果可以,该如何配置,将encoding指定为'UTF-8'
ant的build构建脚本
ant脚本构建工具,有详细的注释、用于构建程序war包,执行编译、修改、拷贝、远程上传程序war包、远程发布程序、远程重启服务器(tomcat)
ant android build config
http://blog.csdn.net/landehuxi/article/details/24264573 使用ant及Eclipse配置文件进行Android项目的标准化,规范化构建
ant build 构建问题
就是一个简单的例子rnjava类rnrnpackage com.test;rnpublic class HelloWorld rn public static void main(String[] args) rn System.out.println("hello ant"); rn rnrnrnbuild.xml文件rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn这个小例子,在doc环境下可以运行正常,但是在myeclipse中无法正常运行rn[img=https://img-bbs.csdn.net/upload/201311/20/1384959043_810714.jpg][/img]rnmyeclipse运行如下rn[img=https://img-bbs.csdn.net/upload/201311/20/1384959120_68757.jpg][/img]rnrn代码就这些了,各位有经验的大哥,看看是什么原因。rn
android ant build error:
build build.xml 报错:rnError: Expecting class path separator ';' before 'Files/android-sdk-windows/platforms/android-7/android.jar' in argument number 4rnrn请问是怎么回事?
一个Ant的build模板
很久没有用ant了,最近写一些ant脚本,觉得手生了,先贴一个ant编译打war包的模板,免得以后翻阅Ant的Manual,一般而言这个脚本可以用来打大部分的war应用,需要修改的地方主要有: war属性,修改成应用定义的webroot目录; 打出的war包的名称; 引用的第三方lib包的路径; <?xml version="1.0" encoding="UTF-8"?> ...
ant的build文件报错。。
[code=Java]rnBuildfile: F:\tempsvn\adapter_cmccinterface\build.xmlrncleanup:rninit:rn [echo] Begin building BPM cmcc.adapter.webcommons in January 25 2011 use Apache Ant version 1.6.5 compiled on June 2 2005rncompile:rn [javac] Compiling 7 source files to F:\tempsvn\adapter_cmccinterface\dest\classesrnrnBUILD FAILEDrnF:\tempsvn\adapter_cmccinterface\build.xml:78: F:\tempsvn\adapter_cmccinterface\$lib.folder not found.rnrnTotal time: 766 millisecondsrn[/code]rn这个是什么原因啊?lib文件夹不存在吗?
关于eclipse运行时Ant build 的问题
问题展示 最近在Java编程时点击"run"时,弹出一个提示框里面显示两个按钮 “Ant build” launches an Ant build with default settings 和 launches an Ant build and allows it to be configured 无论点击那个按钮都说:"unable to find ant file to run " 解决办...
一个关于eclipse运行时 Ant build 的问题
我从网上下载了一个“简单文本编辑器”的java代码,然后用eclipse运行。rn点击"run"弹出一个框rn里面显示两个"Ant build"rnLaunches an Ant build with default settingsrn和rnLaunches an Ant build and allows it to be configured rnrn无论点击哪一个都说"unable to find ant file to run"rnrn这情况怎么解决啊rn
如何使用ANT来Build一个项目?
我知道可以使用JBuilder高版本里自带的Ant,rn项目需求里边要求使用单独的Ant来Build.rn有那位兄弟姐妹使用过,帮帮忙,项目紧,谢谢!
使用ANT 不可以run,而ECLIPSE 能run
程序用到了hibernate 中配置文件:rn[code=java]rnrn rn rn rn rn rn rn[/code]rnrn使用ant compile时,出现unsupported cascade style :creaternrnrn但使用hibernate时,可以正常运行。rnrn
通过ant build eclipse web 项目 加入了修改后的
build.xml <project name="Generic Webapp" default="deploy_tomcat" basedir="."> <!-- Load properties --> <property file="build.properties" /> <!-- En
Ant基本使用指南 & Ant与Eclipse集成解析
Ant基本使用指南 [url]http://www.iteye.com/topic/78973[/url] template : [url]http://shawnqiu.iteye.com/blog/712284[/url]
Spring源码导入Eclipse及ant使用
一:下载Spring Source Code:(源代码版本号为spring-framework-3.1.0.RELEASE)  http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.1.0.RELEASE.zip   二:将下载后的源码文件解压到某个目录下   如:D:\p
java小白提问,Run As Ant Build 没有输入输出吗?
在研究从网上down下来的代码,只能用ant build运行,但运行了没有输入和输出啊rn这代码应该是由输入并且运行输出结果的,改怎么调试?rn
ant工具中build配置文件
build.xml Clean output dirs"/> Compile main Java sources and copy libra
Ant安装build手册—LINUX
Ant安装build手册—LINUX Ant安装build手册—LINUX Ant安装build手册—LINUX
android ant build脚本代码
ant build脚本代码,自动化多渠道打包,自定义任务打包 具体看一下这篇博客 http://blog.csdn.net/lsmfeixiang/article/details/49681583
ant build file / rad setup
NULL 博文链接:https://nethub2.iteye.com/blog/2202784
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数