public static void createWar(LibertyServer server, String dir, String warName, boolean addWarResources, String jarName, boolean addJarResources,
                                 String... packageNames) throws Exception {
        addEarToServer(server, dir, null, false, warName, addWarResources, jarName, addJarResources, packageNames);
    }
public static void createWar ( LibertyServer server , String dir , String warName , boolean addWarResources , String jarName , boolean addJarResources , String ... packageNames ) throws Exception { addEarToServer ( server , dir , null , false , warName , addWarResources , jarName , addJarResources , packageNames ) ; }
/*
Helper method to create a war and placed it to the specified directory which is relative from /publish/servers/ directory.