windows下:
@echo off
cd /d %~dp0
将工作目录转至bat脚本所在的目录。
linux下:
currentDir=`dirname $0`
currentDir好为脚本所在的目录
如果有其它shell设置了环境变量则使用以下方式调用
. $shellPath/../tools/db_load_init.sh
windows下:
@echo off
cd /d %~dp0
将工作目录转至bat脚本所在的目录。
linux下:
currentDir=`dirname $0`
currentDir好为脚本所在的目录
如果有其它shell设置了环境变量则使用以下方式调用
. $shellPath/../tools/db_load_init.sh
maven默认直接访问repo仓库,但国外的仓库太慢了。
这里可以在maven/conf/setting.xml中设置代理,设置一个连接国外网速比较快的代理:
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>127.0.0.1</host>
<port>8087</port>
<nonProxyHosts>local.net|some.host.com|192.168.17.12|10.234.10.12</nonProxyHosts>
</proxy>
</proxies>
我这里是使用的goagent,所以就设置为本机的goagent为代理,速度果然提高了好多。
一篇介绍jsr用法的文章:
https://today.java.net/pub/a/today/2008/04/10/source-code-analysis-using-java-6-compiler-apis.html#accessing-the-abstract-syntax-tree-the-compiler-tree-api
jsr可以将java source生成为一个TreePath,可以读取到该类中的所有信息。(除了备注 -.-!)。
可以了,现在转向eclipse adt看看能否获得带备注的ast。
近期评论