incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmür (JIRA) <j...@apache.org>
Subject [jira] Commented: (CLEREZZA-114) Get rid of warning messages when language graph is parsed on first start
Date Fri, 04 Jun 2010 17:16:56 GMT

    [ https://issues.apache.org/jira/browse/CLEREZZA-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875665#action_12875665
] 

Reto Bachmann-Gmür commented on CLEREZZA-114:
---------------------------------------------

did the following (with error being a file containing the error messages):

val l = (for (line <- Source.fromFile(new File("errors")).getLines();
val startPos = line.indexOf("line ")+5;
      val endPos = line.indexOf(" column");
if (endPos > -1)) yield { 
      line.substring(startPos, endPos)
      }).toList

val data = (for (line <- Source.fromFile(new File("lingvoj.rdf")).getLines()) yield { 
      line.substring(startPos, endPos)
      }).toList

val removing = (for (pos <- l) yield {
 data(Integer.parseInt(pos)-1)
}).toList

val rest = data -- removing

val out = new java.io.FileWriter("lingvoj.rdf")
for (line <- rest)  {
 out.write(line+"\n")
}
out.close()

obviously neither the most elegant nor the most efficient solution ;)

> Get rid of warning messages when language graph is parsed on first start
> ------------------------------------------------------------------------
>
>                 Key: CLEREZZA-114
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-114
>             Project: Clerezza
>          Issue Type: Task
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Reto Bachmann-Gmür
>
> file issue/send mail to whoever is causing it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message