alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Ant example source code file (stripjavacomments.test)

This example Ant source code file (stripjavacomments.test) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Ant tags/keywords

normalline, normalline, string, string

The stripjavacomments.test source code

/*
 * Copyright text
 * has to be removed
 */

/**
 * JavaDoc text about the class.
 * has to be removed
 */ 
public class NormalLine {

    private String withComment; // this comment should be removed

    /* this comment
     * should be
     * removed
     */
    public void doNothing() {
        // this comment should be removed
        int i;
        /* this comment
           should be removed
        */
        int j;
    }

    private String url = "http://ant.apache.org/"; // very difficult!
    private String url2 = "\"http://ant.apache.org/\""; // even worse

}

Other Ant examples (source code examples)

Here is a short list of links related to this Ant stripjavacomments.test source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.