<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    軟件是對質量的不懈追求

    2010年8月5日 #

    linux du 查看文件夾占用空間


    du -sh *

    posted @ 2011-04-15 08:39 BlakeSu 閱讀(280) | 評論 (0)編輯 收藏

    Building Standalone Application with Maven2

    If you are building standalone application in Java, Maven is your friend when packing your application,
    There are two way to let Maven package your application, either as a single jar with all your dependencies jar.


     <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-assembly-plugin</artifactId>
      <configuration>
       <descriptorRefs>
        <descriptorRef>jar-with-dependencies</descriptorRef>
       </descriptorRefs>
      </configuration>
     </plugin>



    One advantage if you choose to do this way is if you need to sign your application jar.
    This is needed if you are building a Java Web Start client and you need more access than connecting back to the server.
    To read more about have Maven signing your jar read http://maven.apache.org/plugins/maven-jar-plugin/usage.html.
    But if you choose to go this way, make sure that all license agreement are shipped with your one single jar.

    Another way is to let Maven package your source code only and then referring the dependent jar file from the MANIFEST file.


     <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <configuration>
       <archive>
        <manifest>
         <addClasspath>true</addClasspath>
         <mainClass>se.msc.adapter.Main</mainClass>
         <classpathPrefix>lib/</classpathPrefix>
        </manifest>
       </archive>
      </configuration>
     </plugin>

    posted @ 2011-02-24 13:03 BlakeSu 閱讀(329) | 評論 (0)編輯 收藏

    eclipse 終于有了列編輯功能

    eclipse 3.5之后終于有了列編輯,快捷鍵是alt+shift+a,再次按此快捷鍵返回常規編輯狀態。


    posted @ 2010-10-15 11:33 BlakeSu 閱讀(1484) | 評論 (0)編輯 收藏

    LineNumberReader 指定文件編碼


    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.LineNumberReader;


    public class Main {
        
        
    public static void main(String[] args) throws IOException {

            InputStreamReader isr 
    = new InputStreamReader(new FileInputStream("15370720.pdf4"), "utf-16");
            LineNumberReader lnr
    =new LineNumberReader(isr);
            String line 
    = null;
            
    while((line=lnr.readLine())!=null){  
               System.out.println(lnr.getLineNumber()
    +"\t"+line);
            }
       }
    }

    posted @ 2010-08-05 09:13 BlakeSu 閱讀(1049) | 評論 (0)編輯 收藏

    主站蜘蛛池模板: 国产精品成人亚洲| 亚洲成aⅴ人片久青草影院按摩| 免费国产高清毛不卡片基地| 暖暖在线日本免费中文| 亚洲色偷偷综合亚洲AV伊人蜜桃 | 久久久青草青青亚洲国产免观| 国产精品免费久久久久电影网| 亚洲一区二区三区无码影院| 一级黄色免费毛片| 中文字幕亚洲一区| 丁香花在线视频观看免费| 亚洲电影国产一区| 亚洲免费视频播放| 亚洲卡一卡二卡乱码新区| 日本一道高清不卡免费| 青青免费在线视频| 亚洲香蕉网久久综合影视| 无码一区二区三区免费| 亚洲jizzjizz在线播放久| 精品国产免费观看| 美女被免费网站91色| 久久久久亚洲av无码专区喷水| www.999精品视频观看免费| 亚洲国产成人久久一区二区三区| 午夜国产大片免费观看| 韩日电影在线播放免费版| 亚洲色欲色欲综合网站| 国产免费av片在线看| 五月天国产成人AV免费观看| 亚洲成AV人片在线观看ww| 成人女人A级毛片免费软件| 精品视频免费在线| 亚洲AV成人精品网站在线播放| 无码专区永久免费AV网站| 一级毛片免费播放试看60分钟| 久久久无码精品亚洲日韩京东传媒| 国产青草视频在线观看免费影院| 国产区在线免费观看| 亚洲avav天堂av在线网爱情| 亚洲免费日韩无码系列| 可以免费看黄视频的网站|