package external; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.regex.Pattern; /** * Introduced to support compile-application-two-jars script, when I couldn't * figure out how to use sed to insert a URL into a file. * @author jbf */ public class FileSearchReplace { public static void main( String[] args ) throws IOException { if ( args.length<3 ) { System.err.println("java external.FileSearchReplace ..."); System.exit(0); } for ( int i=1; i