[ 
https://issues.apache.org/jira/browse/OODT-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14716714#comment-14716714
 ] 

Aditya Dhulipala commented on OODT-847:
---------------------------------------

I'm running into some issues.

What I did:- 
* I've placed the patch provided by Rishi within the filemgr.examples package.
* I've written a basic test - TestFileAttributesExtractor.
* ran mvn compile -- all good
* ran  mvn test -Dtest=TestFileAttributesExtractor -pl filemgr -- ERRORS

ERROS:
Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile 
(default-testCompile) on project cas-filemgr: Compilation failure: Compilation 
failure:
[ERROR] 
/Users/Aditya/Projects/oodt-new/oodt/filemgr/src/test/java/org/apache/oodt/cas/filemgr/metadata/extractors/examples/TestFileAttributesExtractor.java:[10,64]
 cannot find symbol
[ERROR] symbol:   class FileAttributesExtractor
[ERROR] location: package 
org.apache.oodt.cas.filemgr.metadata.extractors.examples
....
{same error reported multiple times}
....

Am I doing something wrong in the terms of naming files/directories?



> New FilemgrMetExtractor to extract File System Attributes
> ---------------------------------------------------------
>
>                 Key: OODT-847
>                 URL: https://issues.apache.org/jira/browse/OODT-847
>             Project: OODT
>          Issue Type: New Feature
>          Components: file manager
>    Affects Versions: 0.8.1
>            Reporter: Rishi Verma
>            Assignee: Rishi Verma
>            Priority: Minor
>             Fix For: 0.11
>
>         Attachments: FileAttributesExtractor.java
>
>
> It's sometimes useful to extract File System metadata from files that people 
> often see when browsing a file on an operating system.
> Examples:
> * POSIX permissions
> * Datetime stamps, including: lastModified, creationTime, lastAccessTime
> * Is a symbolic file?
> * Is a directory?
> * File owner
> * Is hidden file?
> etc.
> Java 7's Files.getAttributes [1] does this in a platform-generic way. We 
> should leverage this and add an extractor for the benefit of the community.
> [1] http://docs.oracle.com/javase/tutorial/essential/io/fileAttr.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to