如何在IntelliJ中查看Svn详细日志?
在"消息"选项卡下,它显示来自重定向到stderr的svn服务器挂钩脚本的错误消息.如何将其视为详细的日志消息(类似于CVS日志,可以在IntelliJ中启用).
如果它提供查看和复制选项,它将有助于调试.
谢谢.
当我尝试使用蚂蚁邮件任务时,它似乎无法发送带有附件的邮件。我当前面临的问题是,即使详细输出显示为与附件一起发送,它也会在电子邮件正文中发送附件内容,而不是作为附件发送。最初它抱怨缺少jar,因此我添加了mail.jar和activation.jar。这是我尝试过的代码段:
<mail mailhost="mailHost.com" messagemimetype="text/html" subject="Test report" >
<from address="mymaild-addr@somedomain.com"/>
<replyto address="mymaild-addr@somedomain.com"/>
<to address="mymaild-addr@somedomain.com"/>
<message> Attached is sample report </message>
<attachments>
<fileset dir="${myRequiredDirectory}">
<include name="Test.txt"/>
<include name="Calls.txt"/>
</fileset>
</attachments>
</mail>
Run Code Online (Sandbox Code Playgroud)
我得到
[mail] Failed to initialise MIME mail: org.apache.tools.ant.taskdefs.email.MimeMailer
[mail] Failed to initialise UU mail: Class org.apache.tools.ant.util.ClasspathUtils can not access a member of class org.apache.tools.ant.taskdefs.email.UUMailer with modifiers ""
[mail] Sending email: Test report
[mail] Sent email with 2 attachments
Run Code Online (Sandbox Code Playgroud) 当我尝试使用ant的exec任务设置一些变量时,它似乎没有设置为我所需的值.不知道这里有什么问题.
当我使用cmd从命令行设置&echo时,它可以正常工作.
<exec executable="cmd">
<arg value="set"/>
<arg value="MY_VAR=SOME_VAL"/>
</exec>
Run Code Online (Sandbox Code Playgroud)
- >
<echo message="MY_VAR is set to %MY_VAR%"/>
Run Code Online (Sandbox Code Playgroud)
输出看起来像:
exec
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\MY_PROJ_BASE_DIR_HERE>
echo
MY_VAR is set to **%MY_VAR%**
Run Code Online (Sandbox Code Playgroud) 我试图在实际调用目标之前向ant的类路径添加更多自定义jar,但它没有采用我的自定义jar,因此我从ant的taskdef类中得到错误无法找到ClassName.有办法处理这个吗?
main.ksh
#/bin/ksh
.
.
ANT_CLASSPATH=$JDK_HOME/jre/lib/rt.jar
ANT_CLASSPATH=$ANT_CLASSPATH:$ANTBUILD_HOME/lib/ant-$ANT_VERSION.jar
.
.
echo $ANT_CLASSPATH
export ANT_CLASSPATH
.
.
# java call with framed ANT_CLASSPATH to ant target which is part of main build.xml ### This call, I don't want to run without my custom jar in ANT_CLASSPATH ###
Run Code Online (Sandbox Code Playgroud)
我的新ksh文件如下所示,我将新的自定义jar添加到ANT_CLASSPATH
sub.ksh
#/bin/ksh
# Adding some more to jars to ANT_CLASSPATH
export ANT_CLASSPATH=../lib/custom/custom-3.0.jar
main.ksh new-build.xml $*
Run Code Online (Sandbox Code Playgroud) 我的Xml看起来像:
<root>
<foo location="bar"/>
<foo location="in" flag="123"/>
<foo location="pak"/>
<foo location="us" flag="256"/>
<foo location="blah"/>
</root>
Run Code Online (Sandbox Code Playgroud)
对于foo,xml元素标志是可选属性.
当我说:
<xmlproperty file="${base.dir}/build/my.xml" keeproot="false"/>
<echo message="foo(location) : ${foo(location)}"/>
Run Code Online (Sandbox Code Playgroud)
打印所有位置:
foo(location) : bar,in,pak,us,blah
Run Code Online (Sandbox Code Playgroud)
只有当flag设置为某个值时,才有办法获取位置吗?