}
}
}
+ dbConnect db=new dbConnect();
+ try {
+ String[] esercizi=suString.stringToVectorString(db.dbQuery("4"));
+ boolean delete=true;
+ for(String esercizio : esercizi)
+ {
+ for(String elemento : lista)
+ {
+ if(esercizio.contentEquals(elemento))
+ delete=false;
+ }
+ if(delete) {
+ xmlOperation es = new xmlOperation();
+ es.remove(esercizio);
+ }
+
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ }
}
// print the events and the affected file
boolean check = EsNameParser.check(pathCreated.getFileName().toString());
if(!check)
{
- File file = new File(global.locationEsercizi+pathCreated.getFileName().toString());
+ File file = new File("/var/www/html/esercizi/"+pathCreated.getFileName().toString());
if(file.delete())
System.out.println("eliminato");
else