On 29 July 2013 20:19, Hady elsahar <[email protected]> wrote: > Hello All, > > i'm working on a clone of the master branch of the extraction framework: > > i noticed that the full version of IOUtils file is in the dump branch unlike > the master branch > https://github.com/dbpedia/extraction-framework/blob/dump/core/src/main/scala/org/dbpedia/extraction/util/IOUtils.scala > > so i pulled that file exclusively from the dump branch merged it to the > local branch > i written small test code to utilize the IOUtils when compiling i faced the > following errors : > > object compress is not a member of package org.apache.commons > import > org.apache.commons.compress.compressors.bzip2.{BZip2CompressorInputStream,BZip2CompressorOutputStream} > ^
That's because on the master branch, core/pom.xml does not declare the dependency on commons-compress. > value charSet is not a member of java.nio.charset.Charset > def writer(file: FileLike[_], charset: Charset = Codec.UTF8.charSet): > Writer = > ^ > value charSet is not a member of java.nio.charset.Charset > def reader(file: FileLike[_], charset: Charset = Codec.UTF8.charSet): > Reader = That's because the Scala people do not care much about backwards compatibility (and neither do I, I must admit). In Scala 2.9.2 (used on master branch), Codec.UTF8 had type Charset: http://www.scala-lang.org/api/2.9.2/index.html#scala.io.Codec$ final val UTF8: Charset In Scala 2.10.1 (used on dump branch), Codec.UTF8 has type Codec: http://www.scala-lang.org/api/2.10.1/index.html#scala.io.Codec$ final val UTF8: Codec > ^ > > it seems that there's something not included in the packages apache.commons > and Code.UTF-8 > should i pull the whole dump branch from Github ? You could try that. It would mean that your code is incompatible with the master branch until we merge my changes from the dump branch. Not terribly bad, but not very good either. or this is because > another thing ? You could also just copy & paste the new methods from IOUtils.scala to your own class and add the commons-compress dependency to your pom.xml. JC > > thanks > Regards > ------------------------------------------------- > Hady El-Sahar > Research Assistant > Center of Informatics Sciences | Nile University > > email : [email protected] > Phone : +2-01220887311 > http://hadyelsahar.me/ > > > ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Dbpedia-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-developers
