Suggestion naming a package

I've done a PKGBUILD for the following program: http://unicorn.us.com/cal.html
Which is basically the traditional Unix cal command with colors and reminders. I'd like to submit it to AUR, problem is that authors have named it just "cal", which conflicts with the traditional command included in util-linux-ng.
Note that there's not conflict whatsoever as long as you give the binary a different name. I've named mine "cal-unicorn" and both work just fine. Same goes for the man pages.
So question is, is there a recommended way to name packages whose name match with another one? What name do you suggest, or do I just forget about submitting it to AUR?

drcouzelis wrote:I think it was pretty lame that the authors named it the same as the standard command.
Indeed. I've finally uploaded it as "cal-unicorn": http://aur.archlinux.org/packages.php?ID=42450
If someone wants to give it another name she just have to change the value of $pkgname in the PKGBUILD. It doesn't conflict with other commands (as long as you give it an unused name).
Last edited by atordo (2010-10-31 15:40:50)

Similar Messages

  • Suggestion for new package management scheme

    As was talked about in the INCOMING thread, Arch is growing and the devs are having trouble keeping up with maintaining packages. Arch is becoming disorganized and messy.
    Well, Xentac and I were discussing this for a while, and we both seem to like a voting system. Arch shouldn't try to maintain every package out there, it's simply a waste of effort. If only one or two people want a package, they can build it themselves, it's not hard with ABS.
    Arch devs should focus on keeping packages high quality, up to date, etc. They can't do this if there's 10,000 packages. So the solution would be that a package won't be included in the official repos (current, extra, unstable) unless it gets a certain number of votes, showing that lots of people really want the package, and it's "essential".
    I don't know how many votes a package would need, but that's a little thing. I would suggest all packages in Extra/Unstable initially go up for this voting (once we implement it) and we make the vote quota be a little lower for this initial slimming, and that'll cut down the repos right there. All those packages that no one uses (that wont even get one vote) can be cut away. People can always vote them back if they become popular.
    I don't want to have to do things like KDE, GNOME, etc myself, but I really don't mind maintaining my own little customizations, like Rhythmbox w/ XINE support (instead of Gstreamer). This vote system simply makes sure that a package is worth the developers time.
    This goes with my idea of Arch as the perfect "Base" distro. People can build what they want on top of it.
    This idea would also remove STAGING, as Arch wouldn't be accepting outside packages (though you're free to run your own repo or post PKGBUILDs on the forum). TESTING would be still used of course.
    Suggestions?

    beniro wrote:
    I haven't really seen a single post in this thread that is without some merit, or at least an attempt at input.
    The great thing about not being a larger distro is that the situation isn't as pressurized.  Still, though, we (meaning the community AND developers) still obviously want Arch to be the best it can be and that's what this thread is about.
    So...are any of the ideas mentioned here feasible?  What do you think would be the best solution to creating a package release system that can handle Arch's current growth?
    What about implementing a vote-based system for everything not in current?  Would this be done with a web-based interface by using "submitrequest/vote" or something...obviously only registered users should be voting, right?
    Anyway, I think a great job is being done and this thread is simply a positive indication of the vitality of the community.  I think most of us fully recognize the resources of our developers and are simply wanting to find a way for them to bring us the best possible product.  Arch rules!
    I agree. I think what we should do is just take this time that we have while Arch is still young and not as well known among the Linux community, and try to make it great, relieving the pressures that we'd get a lot of later (not to say that we wouldn't get any, just less, hopefully).
    As for the package setup, isn't there some way that we could write some system to do this? I had mentioned it before. And, I just came up with a small system. It would work like this:
    We get one main server, whose "job" would be to create and store packages, and users could download from that server to install, etc. Now, whenever someone on the package management team finds an updated version of a package, they could log in to a special area of the site meant specifically for those developers. Then, using the special program on the website/server, they could link to the .tar or .bz2 that contains the source and submit it, along with the file's information that would be included with the package when you install it (file name, version, etc.) into the web-based form. Then, they click submit, and the server processes that file after downloading it, runs a makepkg-type thing on it, and stores the produced package in a "Fresh" repository. Then, the developer can download the file and opt to test it. If they're sure that it's okay, then they can replace the new file over the old one.
    Just an idea, tell me what you think... :?

  • Javax.naming.event package

    Hi,
    Is JNDI event notification (i.e., javax.naming.event) supported in
    weblogic's JNDI implementation?
    Thanks,
    Robert

    I am 99% sure it isn't.
    WLInitialContext and WLContext need to implement the EventContext interface
    in order for it to work. In my case ( and I'm sure yours also ) I get a
    ClassCastException when trying to cast a WLContext to an EventContext. This
    says to me that no, the event package isn't supported.
    I would appreciate confirmation from Weblogic on this though.
    Grand Poobah wrote in message <[email protected]>...
    Hi,
    Is JNDI event notification (i.e., javax.naming.event) supported in
    weblogic's JNDI implementation?
    Thanks,
    Robert

  • Javax.naming.event package supported in weblogic?

    Hi,
    Is JNDI event notification (i.e., javax.naming.event) supported in
    weblogic's JNDI implementation?

    I am 99% sure it isn't.
    WLInitialContext and WLContext need to implement the EventContext interface
    in order for it to work. In my case ( and I'm sure yours also ) I get a
    ClassCastException when trying to cast a WLContext to an EventContext. This
    says to me that no, the event package isn't supported.
    I would appreciate confirmation from Weblogic on this though.
    Grand Poobah wrote in message <[email protected]>...
    Hi,
    Is JNDI event notification (i.e., javax.naming.event) supported in
    weblogic's JNDI implementation?
    Thanks,
    Robert

  • Need some suggestions in writing package..

    Hi everyone,
    I am just asking this question to know a better way than what i am doing.
    I have a patient with 2 million rows in it.Is it possible to extract 2 million rows in a text file using UTL_FILE?.I need to extract each patient related data which comes from differnt tables (bigger than patient table) in a comma deleted file.For each patient id i have to query other tables and get the data related to that patient(according to the requirement).For that i need to call different functions against different tables.
    Some think like this..
    Create or replace procedure XXXX
    cursor -----> to get the patient id's
    variables ------> declare any other variables
    begin
    file handler for utl file to write into a file
    open cursor
    using bulk collect to fetch limited no of rows
    For each patient id loop
    data1 := function1
    data2 := function2
    data3 := function3
    string : = data1|| data2 || data3|| ....
    UTL_FILE.put_line
    reset the string
    end loop;
    end;
    My questions are:
    Is it OK to call differnt functions for each patient id (2 million patients) are there? is there any better way to do this.
    Please give me some suggestions if i need to change any steps that i am following to get better performance.
    Thanks
    Phani

    Hello,
    It would be strongly advisable to minimise your function calls here.
    What I would suggest is: writing one piece of SQL to be looped through with BULK COLLECT, so these:
    data1 := function1
    data2 := function2
    data3 := function3Will be taken care of in the main SQL. Otherwise things will be very, very slow.
    Therefore, something like this:
    BEGIN
    DECLARE CURSOR c_all_data IS
                        SELECT -- put all your data to be retrieved in this SELECT, that will easily be the quickest and most efficient
                                     FROM tab1
                                     JOIN tab2 ON (...
    v1,v2,...
    BEGIN
       OPEN c_all_data;
       LOOP
           FETCH c_all_data BULK COLLECT INTO v1, v2, ....... LIMIT 1000;
           FOR i IN 1 .. v1.COUNT
           LOOP
                --write to your file
                UTL_FILE...
           END LOOP;
           EXIT WHEN c_all_data%NOTFOUND;
       END LOOP;
       CLOSE c_all_data;
    END;

  • Naming suggestion

              I'm working to setup a basic combined tier cluster using 5 server instances across
              two physical machines. The plan is to have one Admin server, the proxy server
              and one managed server on physical machine A and two managed servers on physical
              machine B. My question is - do you recommend any naming conventions for the servers
              within a cluster?
              

    FWIW - Yes, I suggest naming them "server" + last portion of IP address, as
              in:
              server101
              server102
              server103
              server104
              It makes building .sh scripts easier.
              Peace,
              Cameron Purdy
              Tangosol Inc.
              Tangosol Coherence: Clustered Coherent Cache for J2EE
              Information at http://www.tangosol.com/
              "Tom Buck" <[email protected]> wrote in message
              news:3c3e1762$[email protected]..
              >
              > I'm working to setup a basic combined tier cluster using 5 server
              instances across
              > two physical machines. The plan is to have one Admin server, the proxy
              server
              > and one managed server on physical machine A and two managed servers on
              physical
              > machine B. My question is - do you recommend any naming conventions for
              the servers
              > within a cluster?
              

  • Need help with batch processing picture packages

    Hi, I am having trouble batch processing picture packages is CS2.  (Windows).
    I have hundreds of images that need to be processed into picture packages and would love to find a speedier way to do this.
    I know how to create an action.  I know how to batch process from this action.  I also know how to create picture packages, but I cannot get the final result I am after - please read on....
    I have seperated all the images into their seperate folders for each style of picture package required.
    I can create an action for the picture package required and then do a batch process on the particular folder, but this leaves all the picture packages open on the desktop - as when you chose the close and save in the batch process - this only closes and saves the original image - the picture package has been created as a new document and is on the desktop still open - named Picture Package 1, Picture Package 2 - etc etc.
    I hope I am making some kind of sense here... (??!!)
    What I would like to happen is that the picture package will be saved over the original file (or to a new folder) with the original file name of the original image or maybe even with an adjustment to file name (e.g - orignal file name sc1234.jpeg - new file name sc1234packA.jpeg)
    So is this possible to do??  I'm thinking there must be a way.... i'm sure there are many group photographers out there who come across this everyday??
    Otherwise I have to save each picture package manually to original file name (via searching though files to match the original image to the picture package....) Very time consuming.
    Thanks for your help (in anticipation)...
    Jodie

    hmm - thanks for that - sounds like I will have to try and find some info and assistance regarding the scripting - it may be something I need to look into at a later time in the future....
    At the moment though I will have to plod along with this method I guess!
    Thanks for your assistance...
    Jodie

  • Declare objects globally or pass as parameter in Package

    Hi All,
    Need a technical suggestion, in a package i am having several functions,
    say Fn_A calling Fn_B and Fn_B calling Fn_C and Fn_C calling Fn_D
    and i need a collection of Nested Table Objects to be processed at Fn_D,
    and it has to reach from Fn_A, in-between say Fn_C if required, can also process
    the Nested Table Object.
    Also for each Function need to pass 3 parameters of collection object and 3 to 4 Number/Varchar2.
    My question is, would it be better to declare the Nested Table Object globally inside the package,
    or Pass it as an IN OUT NO COPY parameter throughout all functions ?
    And the scenario is :
    Nested Table would have 1000 objects in the collection,
    and each object will have size = 75 Bytes
    and in one day on an average 3 million calls made.
    regards,
    Ludy

    My bias would be not to use a package global if you can reasonably pass the collection as a parameter. It's easier to maintain code that is self-contained rather than trying to debug code whose behavior depends on the state of the session. If you pass in the collection as a parameter, you can write unit tests for all 4 procedures relatively easily rather than having to go through all 4 to test procedure D. Plus, if you don't need to maintain session state, you can update your package code without causing any application tier connections that remained open to error out.
    Performance wise, I wouldn't expect it to matter, though it would be worth benchmarking.
    Justin

  • Issue in Update routine due to Data Package

    We have this peculiar situation.
    The scenario is ..
    We have to load data from ODS1 to ODS2.
    The data package size is 9980 while transferring data from ODS1 to ODS2.
    In the update rule we have some calculations and we rank the records based on these calculations.
    The ODS key for both ODS1 and ODS2 is same ie Delivery Number , Delivery Item & Source System.
    For example a Delivery Number has 12 Delivery Items.
    These Delivery Items are in different Data Packages namely Data Package 1 and Data Package 4.
    So instead of having the ranks as 1 to 10 its calculating it as 1 to 5 and second item as 1 to 5.
    But what we require is Rank as 1 to 10.
    This is due to the fact that the items are in different Data packages.
    In this case the ABAP routine is working fine but the Data Package is the problem.
    Can anybody any alternative solution to this issue.?
    Thanks in advance for assistance.............

    CODE FOR INTER DATA PACKAGE TREATMENT
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    DATA: v_packet_nbr TYPE i VALUE 1.
    DATA:
      g_requnr  TYPE rsrequnr.
    DATA:
      l_is        TYPE string VALUE 'G_S_IS-RECNO',
      l_requnr    TYPE string VALUE 'G_S_MINFO-REQUNR'.
    FIELD-SYMBOLS: <g_f1> TYPE ANY,
                   <g_requnr> TYPE ANY.
    TYPES:
      BEGIN OF global_data_package.
            INCLUDE STRUCTURE /bic/cs8ydbim001.
    TYPES: recno   LIKE sy-tabix,
      END OF global_data_package.
    DATA lt_data_package_collect TYPE STANDARD TABLE OF global_data_package.
    DATA ls_datapack TYPE global_data_package.
    datapackage enhancement Declaration
    TYPES: BEGIN OF datapak.
            INCLUDE STRUCTURE /bic/cs8ydbim001.
    TYPES: END OF datapak.
    DATA: datapak1 TYPE STANDARD TABLE OF datapak,
          wa_datapak1 LIKE LINE OF datapak1.
    Declaration for Business Rules implementation
    TYPES : BEGIN OF ty_ydbsdppx.
            INCLUDE STRUCTURE /bic/aydbsdppx00.
    TYPES: END OF ty_ydbsdppx.
    DATA : it_ydbsdppx TYPE STANDARD TABLE OF ty_ydbsdppx WITH HEADER LINE,
           wa_ydbsdppx TYPE ty_ydbsdppx,
           temp TYPE /bic/aydbim00100-price,
           lv_tabix TYPE sy-tabix.
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS8YDBIM001.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    TABLES: rsmonfact.
      TYPES:
        BEGIN OF ls_rsmonfact,
          dp_nr TYPE rsmonfact-dp_nr,
        END OF ls_rsmonfact.
      DATA: k TYPE i,
            v_lines_1 TYPE i,
            v_lines_2 TYPE i,
            v_packet_max TYPE i.
    declaration of internal tables
      DATA: it_rsmonfact TYPE STANDARD TABLE OF ls_rsmonfact.
    INTER-PACKAGE COLLECTION TREATMENT *******************
      ASSIGN (l_requnr) TO <g_requnr>.
      SELECT dp_nr FROM rsmonfact
        INTO TABLE it_rsmonfact
        WHERE rnr = <g_requnr>.
      DESCRIBE TABLE it_rsmonfact LINES v_packet_max.
      IF v_packet_nbr < v_packet_max.
      APPEND LINES OF DATA_PACKAGE[] TO lt_data_package_collect[].
        CLEAR: DATA_PACKAGE.
        REFRESH DATA_PACKAGE.
        v_packet_nbr = v_packet_nbr + 1.
        CLEAR: MONITOR[], MONITOR.
        MONITOR-msgid = '00'.
        MONITOR-msgty = 'I'.
        MONITOR-msgno = '398'.
        MONITOR-msgv1 = 'All data_packages have been gathered in one. '.
        MONITOR-msgv2 = 'The last DATA_PACKAGE contains all records.'.
        APPEND MONITOR.
      ELSE.
    last data_package => perform Business Rules.
        IF v_packet_max > 1.
          APPEND LINES OF DATA_PACKAGE[] TO lt_data_package_collect[].
          CLEAR: DATA_PACKAGE[], DATA_PACKAGE.
          k = 1.
    We put back all package collected into data_package, handling recno.
          LOOP AT lt_data_package_collect INTO ls_datapack.
            ls_datapack-recno = k.
            APPEND ls_datapack TO DATA_PACKAGE.
            k = k + 1.
          ENDLOOP.
          CLEAR : lt_data_package_collect.
          REFRESH : lt_data_package_collect.
        ENDIF.
    sorting global data package and only keep the first occurence of the
    *record
      SORT DATA_PACKAGE BY material plant calmonth.
      DELETE ADJACENT DUPLICATES FROM DATA_PACKAGE
            COMPARING material plant calyear.
      SELECT * FROM /bic/aydbsdppx00
          INTO TABLE it_ydbsdppx
          FOR ALL ENTRIES IN DATA_PACKAGE
            WHERE material = DATA_PACKAGE-material
              AND plant    = DATA_PACKAGE-plant
              AND calyear  = DATA_PACKAGE-calyear.
    Enhance Data_package with Target additionnal fields.
      LOOP AT DATA_PACKAGE.
        CLEAR : wa_datapak1, wa_ydbsdppx.
        MOVE-CORRESPONDING DATA_PACKAGE TO wa_datapak1.
        READ TABLE it_ydbsdppx INTO wa_ydbsdppx
          WITH KEY material = DATA_PACKAGE-material
                      plant = DATA_PACKAGE-plant
                    calyear = DATA_PACKAGE-calyear.
        IF sy-subrc NE 0.       "new product price
          APPEND wa_datapak1 TO datapak1.
        ELSE.                   " a product price already exists
          IF wa_ydbsdppx-calmonth GE DATA_PACKAGE-calmonth.
    keep the eldest one  (for each year), or overwrite price if same month
            APPEND wa_datapak1 TO datapak1.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDIF.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    Edited by: mansi dandavate on Jun 17, 2010 12:32 PM

  • Not allowed to import classes without package names?

    Hi,
    I have a few questions on Packages and importing?
    1. Is the following true that it is illegal to import classes in the same package as the current class, will this cause a comilation error? If this is the case where in the Java Language specification is this actually written as I could not find it?
    2. This has probably been answered by question 1 but if I have 2 classes in the same package and if I import 1 of the classes into the other class, is it illegal to import it by just using the class name and not the package name as well, ie
    if the package name is ie.tcd
    and the 2 class names are exp1.class and exp2.class, can I do this in class 2
    package ie.tcd;
    import exp1;
    public class exp2 {
    3. Is it illegal to import classes that are not explicitly part of any package or must a class be part of a package to be imported. I read somewhere that while this was always illegal it is only after jdk 1.4.2 that this is being enforced? If this is the case where in the Java Language specification is this actually written as I could not find it either?
    Thanks very much for any help,
    John

    Was just also wondering, 1 other thing, I am looking
    at someone elses code they have 2 classes (Class A
    and Class B) in the same package (pkg). The person
    imports class A into B:
    package pkg;
    import A;
    public class B {
    Is this legal code (or was it ever)?Not if A is really in pkg.A. If there is an A in the unnamed package it was legal, or at least it was understood by the compiler, and now it isn't (to both).
    Can you import or is there a point in importing a class in the same
    package?Only by naming the package in the import statement. If the current and the import statement are in the same package the import is redundant.
    If there is a point would you import just be
    using the class name (this would be illegal after jdk
    1.4) or should you use the whole package name even
    though it is in the package anyways?As I understand it you must always use the whole package name in imports.

  • Problem with package creation

    Hi ,
    I created package name  BBP_ESI, with the following information:
    Appl. Component - MM
    software component - SAP_APPL
    Assign BBP_ESI as a sub package to PI-B2B .
    1, Where can i find  Allowed Objects types in the package creation ,i am using SAP  6.0 version .
    2, When i create a report and save it in this package BBP_ESI, its giving error Customer object PROG ZFCI_BBP_ESI_IDOC_SETUP cannot be assigned to package BBP_ESI . Please let me know why i am getting this error .
    Thanks In Advance .
    Regards,
    Neelima

    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...

  • How to search for available class in given package?

    How to search for available class in given package or sub package?

    Finally i did it. I make hibernate and spring without much configuration. I just pass the package pattern to search for all bean. I named it package pattern injection.
    My website is still under construction yet. It named Jimmy6 Framework.
    The code it just the following for all hibernate and spring bean for the whole project.
    <bean id="sessionFactory" class="com.j6.framework.JAnnotationSessionFactoryBean">
              <property name="annotatationOrHbmXmlPackagePattern">
                   <list>
                        <value>com\.j6\.project.+?\.vo\..+?</value>                    
                   </list>
              </property>               
    <bean id="autoBeanCreatorFactoryManager" class="com.j6.framework.resource.AutoBeanCreatorFactory">
              <property name="packagePatterns">
                   <list>
                        <value>com\.j6\.project\..+?\.manager\..+?</value>
                   </list>
              </property>
         </bean>
         <bean id="autoBeanCreatorFactoryDao" class="com.j6.framework.resource.AutoBeanCreatorFactory">
              <property name="packagePatterns">
                   <list>
                        <value>com\.j6\.project\..+?\.dao\.hibernate.+?</value>
                   </list>
              </property>
         </bean>Feel free to have a look and gv some comments. Thanks :)
    Regards,
    Jimmy6
    Edited by: jimmy6 on Nov 4, 2008 8:15 AM

  • Package Names

    This is another of my questions related with naming. My problem is that I care so much on naming of packages, classes, methods, variables, etc because I want to make my code as readable as possible.
    I read from google about some standards when creating a new package. It states that it must the company domain in reverse. This means "com.companyname.xxxx" or "org.organizationname.xxxx" like "org.eclipse.xxxx" or "com.nokia.xxxx". So far so good...
    My problems comes when I have to devide the application classes. I most often use the MVC. so what I do is having
    org.organizationname.applicationname.view
    org.organizationname.applicationname.control
    org.organizationname.applicationname.model
    org.organizationname.applicationname.utilHowever I am finding this a little stupid. My problem is I never seen any full application code and so I had to invent these myself. I sometimes change from .control to .business or .services.
    My question is how do you usually name the packages to identify between the view, model, control classes??
    I also get confused on how to set the package name for an application that will make use of a webservice. Because a webservice is a service, but you could have other things that can be a service. And you can not make your package name too long either!!

    This is another of my questions related with naming.
    My problem is that I care so much on naming of
    f packages, classes, methods, variables, etc because
    I want to make my code as readable as possible.
    I read from google about some standards when creating
    a new package. It states that it must the company
    domain in reverse. This means "com.companyname.xxxx"
    or "org.organizationname.xxxx" like
    "org.eclipse.xxxx" or "com.nokia.xxxx". So far so
    good...
    "Must" is a very strong word. I believe "recommends" is more correct. We use the reversed URL convention for package names where I work, but it's not mandatory.
    My problems comes when I have to devide the
    application classes. I most often use the MVC. so
    what I do is having
    org.organizationname.applicationname.view
    org.organizationname.applicationname.control
    org.organizationname.applicationname.model
    org.organizationname.applicationname.util
    However I am finding this a little stupid. What's so stupid? That's the way I see it done.
    I think it's only a problem if (1) you can't touch type, (2) you don't have an IDE like IntelliJ that can automatically insert the package name for you when create a class in a package, or (3) you're bothered by a bit of verbosity.
    My
    problem is I never seen any full application code and
    so I had to invent these myself. I sometimes change
    from .control to .business or .services.
    My question is how do you usually name the packages
    to identify between the view, model, control
    classes??Yes.
    I also get confused on how to set the package name
    for an application that will make use of a
    webservice. Because a webservice is a service, but
    you could have other things that can be a service.Every service is not a web service - two different things. It's a packaging/deployment issue. The fact that you choose to deploy a particular service as a Web service doesn't change its essence.
    And you can not make your package name too long
    g either!!What do you mean by "too long"?
    Do you have a point or a question here?
    %

  • 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...

  • Problem with packages.p lease help me to resolve

    They are in ShoppingCart package, so create ShoppingCart folder and place these
    2 java files in that folder.
    Then try to execute �java test� it is giving error, and see the stmts below:
    D:\Ashok\Received Files\ShoppingCart>dir
    Volume in drive D has no label.
    Volume Serial Number is 6C50-67AC
    Directory of D:\Ashok\Received Files\ShoppingCart
    08/10/2005 12:33 PM <DIR> .
    08/10/2005 12:33 PM <DIR> ..
    08/10/2005 12:33 PM 1,952 DBConnect.class
    08/10/2005 12:30 PM 1,197 DBConnect.java
    08/10/2005 12:31 PM 189 test.java
    3 File(s) 3,338 bytes
    2 Dir(s) 23,262,097,408 bytes free
    D:\Ashok\Received Files\ShoppingCart>javac test.java
    test.java:5: cannot resolve symbol
    symbol : class DBConnect
    location: class ShoppingCart.test
    DBConnect d=new DBConnect();
    ^
    test.java:5: cannot resolve symbol
    symbol : class DBConnect
    location: class ShoppingCart.test
    DBConnect d=new DBConnect();
    ^
    2 errors
    D:\Ashok\Received Files\ShoppingCart>dir
    Volume in drive D has no label.
    Volume Serial Number is 6C50-67AC
    Directory of D:\Ashok\Received Files\ShoppingCart
    08/10/2005 12:33 PM <DIR> .
    08/10/2005 12:33 PM <DIR> ..
    08/10/2005 12:33 PM 1,952 DBConnect.class
    08/10/2005 12:30 PM 1,197 DBConnect.java
    08/10/2005 12:31 PM 189 test.java
    3 File(s) 3,338 bytes
    2 Dir(s) 23,262,097,408 bytes free
    D:\Ashok\Received Files\ShoppingCart>javac *.java
    D:\Ashok\Received Files\ShoppingCart>dir
    Volume in drive D has no label.
    Volume Serial Number is 6C50-67AC
    Directory of D:\Ashok\Received Files\ShoppingCart
    08/10/2005 12:33 PM <DIR> .
    08/10/2005 12:33 PM <DIR> ..
    08/10/2005 12:33 PM 1,952 DBConnect.class
    08/10/2005 12:30 PM 1,197 DBConnect.java
    08/10/2005 12:33 PM 531 test.class
    08/10/2005 12:31 PM 189 test.java
    4 File(s) 3,869 bytes
    2 Dir(s) 23,262,097,408 bytes free
    D:\Ashok\Received Files\ShoppingCart>java test
    Exception in thread "main" java.lang.NoClassDefFoundError: test (wrong name: Sho
    ppingCart/test)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    D:\Ashok\Received Files\ShoppingCart>

    "java test" would call the class test in the unnamed package. Your class is named ShoppingCart.test (which by the way is completely against Java naming conventsion, package names should be lower case and class names should be CamelCase, not the other way round).
    So you'd need to call java ShoppingCart.test from the directory that contains the ShoppingCart directory (or more precisily: with the directory that contains the ShoppingCart directory on your classpath).

Maybe you are looking for

  • Reports 9i - Printing Error on older version files

    I run a report made in Reports 3.0. When opened in 9i it runs on screen correctly but I can't print the results. Plus, when running the option for HTML the reults is a blank screen in the browser. Should I convert it first to 6i? Error message is nex

  • Default values in Account creation page

    Hello. I'm new to CRM and this forum too. I need some guidance. I have to set default values in account creation page. For this, I thought to use DO_INIT_CONTEXT method. And, when I searched this forum, I see a lot of threads about BADI CRM_BP_UIU_DE

  • Change in Pricing of product family.

    Hi Gurus, I want information on getting change in pricing lists during past 2 years for given list of product families. Can anyone help for this ? Thanks in Advance, Swapnil

  • Canon 5D Mark II Import Problem

    Using Canon Utility to import, appears to not recognize the camera ,but, does work with a Sony Camcorder HXR-NX30P using Windows import for Adobe CS5.5.2. USB 2 Cabling has been checked for stills.. Any ideas ? [Please choose a short description for

  • About Material Cost Estimatite Valuation Strategy

    Material PPC001 have three purchase info record, it's price is 4.27/CNY,3.68/CNYand 2.56/CNY. Price 4.27/CNY and 2.56/CNY have invalid. Material of moving average price is 3.14/CNY. When I create the material cost estimate,in the material valuation,