Package name ending with .java

Hi,
I have some trouble with a package name ending with "fragments.java". When I use 'packagenames' javadoc complains when it reaches that package.
I'm guessing javadoc thinks it's a source file and tries to parse it as such.
I have found a workaround by using 'subpackages' instead of 'packagenames' but I want it work with ant, which doesn't support the subpackages flag.
Is there a way to get around this?
- Henrik

Not at all.
Assume that there is a package called something.smthing.java
Then this won't work:
<javadoc sourcepath="${src_dir}" destdir="${doc_dir}"
packagenames="something.*"/>
It will give the following error message because it thinks it is a source file:
[javadoc] Loading source file something.smthing.java...
[javadoc] error: cannot read: something.smthing.java
So, you can get around that by doing like this instead:
<javadoc sourcepath="${src_dir}" destdir="${doc_dir}"
packagenames="something"
additionalparam="-subpackages something"/>
Which gives the -subpackages option to javadoc.

Similar Messages

  • Package name ends in ".java" causes failure

    I /think/ I've identified a bug in javadoc: javadoc will not allow module names which end in ".java". (maybe this is a feature).
    It seems that javadoc should check for directory status or have some other check other than just string comparison to determine if a file should be parsed or considered to be a package.
    Has anyone else encountered this?
    In my source code there are several instances of packages which end in ".java" -- javadoc is unable to parse these packages & instead tries to "Load source file' when it should try to "Load source files for package..."
    Example:
    javadoc com.mycompany.modules.java com.mycompany.jsp
    Error message:
    Loading source file com.mycompany.modules.java...
    error: cannot read: com.mycompany.modules.java
    Loading source files for package com.mycompany.modules...
    Loading source files for package com.mycompany.modules.jsp...
    1 error

    This bug was fixed in 1.4.1:
    http://developer.java.sun.com/developer/bugParade/bugs/4507380.html
    -Doug Kramer
    Javadoc team

  • LR3 bug: Files from a folder with name ending with "." (dot) cannot be imported

    This is a weird one Surprisingly, directories with names ending with a dot, don't show in the Import dialog and also cannot imported by using synchronization. So, if you have any folder named "Flowers, trees etc." ... you cannot import it.

    And what happens if you delete the dot at the end of the folder name?

  • The package name in the java files are modified

    Hey All,
    After creating a Portal Web Project, I imported the existing web applications to Weblogic Workshop. Then I found that the package names in the Java source codes are modified. The <folder name>. is added to the existing package name.
    For example,
    package com.symphonia.script.engine;
    is changed into
    package ScriptingEngine.com.symphonia.script.engine;
    because ScriptingEngine is the folder name.
    The package name of some other Java codes are doubled.
    For example,
    package symphonia.util;
    is changed into
    package syms-util.com.symphonia.util;
    Are there any ways to avoid this package rewriting when importing web applications to the Workshop?
    Thanks!
    Jeff

    To avoid path modifications add all 'base' paths(paths form which you will store the source code) to 'source paths' to Tools-->Project Properties-->Selected-project
    Then you add files/directories to one of the source-paths.
    They should not have any package modifications.
    HTH,
    Raj

  • Function not found when package name exists with same name as schema name

    Hi all, any help would be appreciated :)
    I found an issue with pl/sql resolving a functions location when the db has a package name with the same as the db schema name.
    My example:
    -- arbitrary test function, not in any package
    create or replace FUNCTION testFunc
         inTest     IN VARCHAR2
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN 'a';
    END;
    -- There is a package called "FM" with functions that are not referenced or used in this example and the db schema is "FM".
    -- The following PL/SQL fails with the message: "ORA-00904: "FM"."TESTFUNC": invalid identifier"
    select cursor (select testFunc('a') from dual) from dual;
    -- The following PL/SQL works:
    select * from (select testFunc('a') from dual);
    As mentioned the function testFunc is NOT in the FM package. This issue does not happen when I remove the FM package. So it seems like there is an issue with cursors calling functions when there exists any package with the same name as the db schema.
    Can anyone tell me why this happens and also what I can add to force the function that is not in any package to be referenced (without Oracle trying to look in the FM package)?
    DB: Oracle 11.2.0.2
    thanks!
    Paul

    Hi Paul,
    In general I would not advice to have schema and objects with the same name.
    Here is what documentation is saying here: How Name Resolution Differs in PL/SQL and SQL
    PL/SQL uses the same name-resolution rules as SQL when the PL/SQL compiler processes a SQL statement, such as a DML statement. For example, for a name such as HR.JOBS, SQL matches objects in the HR schema first, then packages, types, tables, and views in the current schema.
    PL/SQL uses a different order to resolve names in PL/SQL statements such as assignments and subprogram calls. In the case of a name HR.JOBS, PL/SQL searches first for packages, types, tables, and views named HR in the current schema, then for objects in the HR schema.As you can see above when using PL/SQL for your case Oracle searches first for packages, types, tables, and views named FM in the current schema, then for objects in the FM schema.
    And because a package FM is found it is raising an error due to the fact that the procedure could not be found in that package.
    I hope this clarify.
    Regards.
    Al

  • Name Clash with Java Class

    I have a web dynpro track.  In my DC I use a java class that is in the src/packages directory.  Somehow the connection between my SpiritCalendar.java class on my PC and the one in the repository have come apart.  The repository browser shows the SpiritCalendar.Java class with the local house symbol next to it and the words SpiritCalendar.java <Name Clash>. 
    The differences between the two versions is just one method so I'm not scared of deletes. Natually, this is stopping the build since I use the new method.
    Any guidance on how to fix this?
    Diane

    I just tried to do an Edit File in this Folder from my UTIL folder.  The other Java Class checked out fine.  The SpiritCalendar class gave a  Sync Failed due to the name clash
    08:25:57.693  SYNC  (FAILED: File has local-remote name clash)  SpiritCalendar.java
      (D:\NWDI Development Configuration\4\DCs\spiritaero.com\cats\emp\timevrfy\_comp\src\packages\com\spiritaero\cats\empl\util\SpiritCalendar.java)
         08:38:59.360  SUCCEEDED: Created activity act_w_MTEHRC2_spiritaero_2e_com_MTE_2d_CATS_2d_CUSTOM_dev_inactive_u_s0002916_t_2009_01_30_14_38_59_GMT_de7d6ee2-3a90-4d19-92ee-9f0873308fff
         08:39:01.172  EDIT  (SKIPPED: File is local-only)  SpiritCalendar.java  
    (D:\NWDI Development Configuration\4\DCs\spiritaero.com\cats\emp\timevrfy\_comp\src\packages\com\spiritaero\cats\empl\util\SpiritCalendar.java)
         08:39:01.469  EDIT  StringUtility.java   (D:\NWDI Development Configuration\4\DCs\spiritaero.com\cats\emp\timevrfy\_comp\src\packages\com\spiritaero\cats\empl\util\StringUtility.java)
         08:39:02.110 ==> Finished in 985ms. 1 file succeeded (8428 bytes). 1 file skipped (51066 bytes).

  • File name end with *

    Hi ,
    While working with files i found that a new file is always ends with "*"
    i.e
    suppose if my file name is abc.txt
    then my solris box displays it as abc.txt*.
    It is creating problem while creating and reading files.
    Please suggest , how can i get away with this "*" .
    Thanks

    (Not sure what the relation is to the compiler, maybe ask on opensolaris instead?)
    KabhiNahin wrote:
    While working with files i found that a new file is always ends with "*"Created how?
    i.e
    suppose if my file name is abc.txt
    then my solris box displays it as abc.txt*.Displayed how?
    If you create files with execution permission, "ls" is often configured to print it with a trailing '*', just like it adds / for a directory, @ for a symlink, etc. man ls to disable it.
    It is creating problem while creating and reading files.What problem when you read the files how? It is hard to answer a question without some information...

  • Wlsc problem with package name

    I am using wlsc ant task to generate my java code for a web service. Unlike the simplistic examples (HelloWorld and Complex) I have my complex types split into a separate .xsd file instead of putting them directly into the WSDL file.
    Is there a way to set the package name that will be generated for these types? It seems to generate everything into a java package based on the namespace (which is different than the wsdl).
    The wlsc ant task has an argument called "packageName" which I am setting. The java classes for the service itself use that package, just not the types defined in the xsd file(s). :(
    Thanks for any help

    see SAP documentation for package naming convention:
    Packages
    The following namespaces are available for packages:
    Package names beginning with a letter from A to S, or from U to X.
      Package names beginning with these letters are reserved for objects of the SAP standard system from the SAP namespace. You cannot create customer objects or objects from prefix namespaces in these packages.
    Note that the package name must be no more than 30 characters long. The name of the main package should reflect the content of the package Adjacent packages should have similar names.
    The Transport Organizer records changes to objects in these packages, so that they can be transported.
    These packages belong to the "SAP" transport layer and are assigned to an SAP software component (such as SAP_BASIS, SAP_APPL).
    Package names beginning with Y or Z
      You can create customer-specific objects from the customer namespace in these packages.
    The Transport Organizer records changes to objects in these packages, so that they can be transported, provided the SAP System has been set up appropriately. (For more information, see Setting the System Change Option). These packages are assigned to the software component HOME.
    So create the packages accordingly...

  • Will a jni header accept a package name with "." in between

    My java class for native function call is included in a package with name like "xxx.yyy.zzz"
    So when I edit the jni class in header file generated to include the package name ,it shows error.
    Is it possible to write jni class for a native function defined in java class which such package name?

    My java class is like this.
    package aaa.bbb.ccc;
    public class Sample{
         static {
              try {
                   System.loadLibrary("WMSMS");
              } catch (UnsatisfiedLinkError e) {
                   System.err.println("WMSMS.dll failed to load. \n" + e);
                   System.exit(1);
         final static native int SendSMS(boolean a, boolean b, String SMSC,String phno, String msg);
         public static int sendSMS(String phoneno, String message){
              int msent = SendSMS(false,true,"",phoneno,message);
              return msent;
    }The header file generated has function like:
    JNIEXPORT jint JNICALL  Java_Sample_SendSMS
      (JNIEnv *, jclass, jboolean, jboolean, jstring, jstring, jstring);So I changed it to
    JNIEXPORT jint JNICALL Java_aaa.bbb.ccc_WMSMS_SendSMS
      (JNIEnv *, jclass, jboolean, jboolean, jstring, jstring, jstring);But then the cpp code showed errors on compiling.
    I dont want to change package name ,since all other classes of the project are included in it and we use this format to easily distinguish the packages (for more clarity) .
    Otherwise using a simple package name works fine and i m able to call the cpp dll with the jni.

  • Names imported with a 'space' at the end..

    I discoverd that I imported a batch of names (contacts) into my address book not realizing that a 'space' had entered at the last name field. So when I try to remove duplicate names address book does'nt recognize the fields and does'nt remove them. Would it be difficult to write a script to remove all the spaces behind the fields 'last name'?
    thanks!

    Click here to launch Script Editor.
    <pre class=COMMAND>tell application "Address Book"
    set nameList to every person whose last name ends with " "
    repeat with somePerson in nameList
    last name of somePerson
    set lastName to text 1 thru -2 of result
    set last name of somePerson to result
    end repeat
    end tell
    </pre>

  • Binding file for controlling package name

    I looked at the related links, tried a few examples, not much success...
    I realize this can be solved with more effort, but just trying the easy path, so ... ignore this if looks unreasonable, I know how busy developers feel...
    Is there a good example to conform to these requirements:
    Basically i would like binding file as a child element for wsdlc running in JAXWS mode that will follow package naming rules for JAXRPC... meaning:
    Java files generated from xsd will match package name with xsd name space, while for JWS classes control specific package name ...
    Most of my attempts failed due to xpath complaining for not finding any element for the node ...
    Binding attempt 1: make all classes serializable
    ============================
         <jaxws:bindings
                        xs:schemaLocation="Customer.xsd"
    node="/xs:schema">
    <jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <jxb:serializable/>
    </jxb:globalBindings>
    </jaxws:bindings>
    Binding attempt 2: keep same name for xsd classes
    ============================
    <schemaBindings>
    [ <package> com.myown.pack</package> ]
    [ <nameXmlTransform> http://xmlschema.my.xsd.com/CustomerCall </nameXmlTransform> ]*

    Yes, select the project in the mapping workbench, click on the "Defaults" tab.
    There's a checkbox called "Specify Project Package".
    Darren
    Is there is way to specify a package name for the java file generated when you export a project.
    Thanks,
    Rajiv

  • In Lr 3.6 how can I search for filenames ending with a # character ?

    The text search seems to treat the # character in some mysterious way so as to not select the files that have it in their name. I cannot find any explanation for this in the documentation. Is there some other character(s) that I have to put beside the # to make it register as a normal character ?
    My specific problem is that I need to locate a bunch of files in my catalog that have names ending with a # character. I want to rename those files in a way that removes the trailing # but not other # characters that separate key parts of the file names. If I can't do that then I want to select that group of files and produce .xmp files for them (I don't normally use .xmp files) so that I can rename the files outside Lr and import them again complete with all previous tweaks and metadata.
    I dare say that I would not choose to name files this way if I started again but I've got far too many to change now. 
    There are also too many for me to want to rename them individually in the Metadata panel if I can avoid it.
    I'm using Lr 3.6 on Mac OSX 10.6.8
    cheers,
    - Alan

    You guys beat me to the answer, which I discovered more by accident than good management.
    Firstly, I had used the # characters because they looked good in list views such as in Windows Explorer or the Mac Finder. That was from before I got into using Lr and I was trying and using several different programs to manage my photos. Then I found that trailing # characters prevented Lr from recognizing the number at the "end" of the file name and so I wanted to delete them.
    Secondly, I got into the Lr rename facility initially to replace what I did with Downloader Pro before switching from Windows to Mac and subsequently found that there is no way to delete a trailing character, but it helped establish in my mind that to Lr the "filename" was just the first part of the name before the full stop and the extension (e.g. .cr2 or .nef or .jpg). Try it - there is a "filename" token for setting up a naming structure that ignores the extension and its full stop.
    This was further reinforced in Library Grid View where the filename and the extension are separated and the extension is not displayed.
    So having used F2 (rename) before I got around to playing with the text search I was set up for failure. Looking for {filename ends with #} or {filename ends with #.} failed because it found nothing as none of my files had a # or #. after the filename extension, and looking for {filename contains #} also failed because it found all of my files instead of just those with the trailing #. I wrongly thought that Lr had trouble seeing a # in the text search.
    Now I have been able to find and select all files with a trailing # in the base part of the filename by looking for {filename contains #.} and generate current .xmp files for them. Then I went outside Lr and used a utility file renamer to get rid of the offending # for the image files and the .xmp files in bulk. Then I re-synchronized the folder(s) in Lr to import those renamed files back into Lr along with all of the metadata, and get rid of the old files from the catalog. Had those files been a part of a collection or stack then I suspect that membership of the collection or stack would have been lost but it kept the keywords, ratings, labels, and image tweaks. Then I got rid of the .xmp files again because I prefer to work without them (less clutter and less chance of other software separating them from the image files).
    So much easier than doing it the hard way
    Thanks for your help.
    - Alan

  • Package name in Solaris 10

    Hi,
    I try to uninstall the following path:
    /usr/spool/lp/model/ppd/system/foomatic
    for all the printer model files.
    Is there a Solaris 10 Package name associate with these files that I can use pkgrm to do?
    Thanks!

    You can get the associated package name by running:
    grep lp\/model\/ppd\/system\/foomatic /var/sadm/install/contents | awk '{ print $10 }' | sort -u

  • Package name for Toplink generated file

    Is there is way to specify a package name for the java file generated when you export a project.
    Thanks,
    Rajiv

    Yes, select the project in the mapping workbench, click on the "Defaults" tab.
    There's a checkbox called "Specify Project Package".
    Darren
    Is there is way to specify a package name for the java file generated when you export a project.
    Thanks,
    Rajiv

  • FCHR - Online Cashed Check - Creates Batch session ending with ERR session

    My user is using the transaction FCHR - Online cashed checks to clear the payment document which we have made check payment and creates clearing document automatically in the bank GL account. In my case, the batch input session is creating with name ending with "ERR" and needs to process foreground in SM35 to create the clearing document. Most of time FCHR creates clearing document automatically and some times it is creating batch input session with user name ending with ERR. Can anyone provide me the reason for creating batch input session sometimes.
    Thanks in advance.

    Do you mean FCKR?  FCKR will generate a bach session with ERR when FCKR is unable to post the clearing at the time it is ran.  There is a check box at the bottom of the transaction called "Print posting log".  The posting log should give the errors that occur during posting.  Make sure this check box is checked when FCKR is run and review the log generated for errors.
    Regards,
    Shannon

Maybe you are looking for

  • I can't sync my music to my new iPhone 5?

    I just switched from an iPhone 4 to an iPhone 5 a few days ago. I backed up my iPhone 4 so that all my pictures, contatcs, calenders, ect. would be put onto my iPhone 5. When i plugged my iPhone 5 into my laptop to restore from the past back up and s

  • How to invoke delete rows event in ALV_GRID

    I have two screens. The first screen 100 have several splitter control ALV grids that display data. The second screen 200 is the maintenance of screen on 100 that have two grids side by side need to update simultanously. When I update or insert data

  • Error 404 when trying to download OEM Agent

    Hello, I have tried since yesterday to download the OEM agent for Linux for x86-64 bit from the the page http://www.oracle.com/technology/software/products/oem/htdocs/agentsoft.html but I always have the error 'Page not found 404' (http://www.oracle.

  • Burning a DVD from FCP Pro (relation between QT and IDVD)

    When encoding and burning a DVD with IDVD from a QTime file (exported from Final Cut Pro plain QT uncompressed export), do I need to pay attention to the QuickTime Player settings? For example, the codec is automatically set on H.264, does it make an

  • Charger accessory not supported

    The charger that came with my iPad is having issues.  When I plug it in, I get an error message that says the "accessory" isn't supported.  It came with the iPad, is only three weeks old, and worked fine until this week.  ???