thinking in life.
posted on 2010-08-02 10:21 cary 阅读(384) 评论(8) 编辑 收藏 所属分类: unix
#! /bin/bash#compilerjava -jar ~/eclipse-jee/plugins/org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar $* 回复 更多评论
Here is a small example:<?xml version="1.0" encoding="UTF-8"?><project name="compile" default="main" basedir="../."> <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> <property name="root" value="${basedir}/src"/> <property name="destdir" value="d:/temp/bin" /> <target name="main"> <javac srcdir="${root}" destdir="${destdir}" debug="on" nowarn="on" extdirs="d:/extdirs" source="1.4"> <classpath> <pathelement location="${basedir}/../org.eclipse.jdt.core/bin"/> </classpath> </javac> </target></project>The syntax used for the javac Ant task can be found in the Ant javac task documentation. The current adapter supports the Javac Ant task 1.4.1 up to 1.6.5 versions.If you are using a version above 1.5.0, you can use the nested compiler argument element (<compilerarg>) to specify compiler specific options....<javac srcdir="${root}" destdir="${destdir}" debug="on" nowarn="on" extdirs="d:/extdirs" source="1.4"> <classpath> <pathelement location="${basedir}/../org.eclipse.jdt.core/bin"/> </classpath> <compilerarg compiler="org.eclipse.jdt.core.JDTCompilerAdapter" line="-1.5 -warn:+boxing"/></javac>...Note: 1. To prevent compiler dependant buildfiles, we strongly advise you to use a <compilerarg> whose "compiler" attribute value is org.eclipse.jdt.core.JDTCompilerAdapter. If this is not set, the buildfile can only be used with the Eclipse compiler. If set, the nested compiler argument is ignored if the name is different from the compiler name specified by the build.compiler property. 2. <compilerarg> should not be used to set values like target value, source value, debug options, or any options that could be set using the defined attributes of the javac ant task. Its usage must be reserved to pass compiler specific options like warning options. When a command-line argument is specified more than once, the Eclipse batch compiler can report errors like: duplicate target compliance setting specification: 1.5 回复 更多评论
java -cp org.apache.felix.framework-1.8.1.jar:org.apache.felix.shell-1.2.0.jar -d c:\classes *.java 回复 更多评论
shell tutorialhttp://bash.cyberciti.biz/guide/Main_Page 回复 更多评论
while IFS= read -r linedo echo $line rm $linedone < "./some_file.txt" 回复 更多评论
find . -name "*.js" >xxxwhile IFS= read -r linedo echo $line rm "$line"done < "./xxx"find . -name "*.js"echo "completed" 回复 更多评论
for maclogin as root then:sh-3.2# lsof -i | grep LISTENlaunchd 1 root 19u IPv6 0xffffff8008326d80 0t0 TCP localhost:ipp (LISTEN)launchd 1 root 20u IPv4 0xffffff800832bc20 0t0 TCP localhost:ipp (LISTEN)launchd 1 root 88u IPv4 0xffffff8008329fa0 0t0 TCP *:10011 (LISTEN)launchd 1 root 91u IPv6 0xffffff8008325e80 0t0 TCP *:10011 (LISTEN)launchd 1 root 103u IPv6 0xffffff80083269c0 0t0 TCP *:rfb (LISTEN)launchd 1 root 104u IPv4 0xffffff800832b500 0t0 TCP *:rfb (LISTEN)launchd 1 root 106u IPv6 0xffffff8008326600 0t0 TCP *:ssh (LISTEN)launchd 1 root 107u IPv4 0xffffff800832ade0 0t0 TCP *:ssh (LISTEN)kdc 66 root 6u IPv6 0xffffff8008326240 0t0 TCP *:kerberos (LISTEN)kdc 66 root 8u IPv4 0xffffff800832a6c0 0t0 TCP *:kerberos (LISTEN)webfilter 431 root 3u IPv4 0xffffff8008329fa0 0t0 TCP *:10011 (LISTEN)webfilter 431 root 4u IPv6 0xffffff8008325e80 0t0 TCP *:10011 (LISTEN)java 3165 root 53u IPv6 0xffffff800b467700 0t0 TCP *:http (LISTEN)java 3165 root 55u IPv6 0xffffff800b99fd80 0t0 TCP *:8009 (LISTEN)java 3165 root 66u IPv6 0xffffff8008325340 0t0 TCP localhost:8005 (LISTEN) 回复 更多评论
curl -icurl -Icurl -v http://www.baidu.com 回复 更多评论
Powered by: BlogJava Copyright © cary