Hello Everybody: I am planning to have three jar files for submission. They will be scjd.jar, client.jar, and server.jar. Under scjd.jar I am thinking to have README, docs, all.policy, db.db, client.jar, and server.jar files. My client.jar and server.jar will be excutable jar files. I am kind of confused here. Each excutable jar file needs an entry point MANIFEST.MF right! I need two MANIFEST.MF files one for client and one for server. How can I have two MANIFEST.MF file with the same name at same place. How you guys have done it? By the way I am writting first MANIFEST.MF file by myself then only I am using jar command as below. jar cvfm client.jar MANIFEST.MF suncertify\client\*.class Any response in this regards highly appriciated. Thanks in advance for response. Have a great day everybody. -Bal
I had created a directory structure as follows c:\devexam main directory which is the base in ther I had c:\devexam\suncertify\client c:\devexam\suncertify\db c:\devexam\suncertify\help for my package directories. then I had a c:\devexam\manifest\client c:\devexam\manifest\server in each of those I had a separate manifest file. So when I jarred the files I used the following batch file.
It put some files in the client that the client didn't need, so I would opent he jar file in Winzip and remove those server files not needed. Hope that helps Mark
Hey Mark your batch file is cool. I liked it. Just for curiosity. Did you include this batch file in your submission? I think you did not right! You made your own small tool to produce jar files right. Thank you. -Bal
No, I did not include it in the submission. I had actually made a bunch of batch files to save me time. Especially when I was javadocing. I would make spelling errors, forget something, blah, blah, blah, and have to recreate the javadocs. even though this batch had only one line in it. I had one for running RMIC for creating my Stubs, and one for running the server and client in remote and local modes. But I made sure none of them were in my submission, because I could not guarantee that the accessor had a windows machine. Mark
Hi, I've got to agree. Ant is the Dogs Bo**ocks when it comes to build and deployment for Java. I'm also using it for the SCJD project. I've got tasks, amongst others, to create the javadocs and run junit tests. One thing I like is that it can produce the report from the junit tests as XML which it can run through a stylesheet for you! I think there is also a task to make you a cup of coffee :-) There are tasks for just about anything you could imagine - and if there isn't a task you can write your own! Certainly something for your CV. Cheers, Steve
Hi, Its a personal choice of course. I'm only using Ant for build and deployment as I'm familiar with it, its easy to use, has a lot of nice features, and it means I don't have to try and hack around with a half baked batch language to build and deploy. Maybe I'm just allergic to goto statements!!! :-) However, for anyone who is about to start the project or has just started then its probably worth investing some time in Ant as its growing in popularity - I wouldn't like to have to build and deploy an enterprise application with platform specific batch files! Cheers, Steve
Hi i have looked briefly into ant it seems interesting. However i wonder if it is nesessary to be proficient at xml to utilize it. also any other good sites giving an introduction to it for a beginner. tom mcmorrow
Hi, I don't think its really necessary to know too much about XML. As long as you know attributes, elements and that a start tag must have a corresponding end tag. The Ant dtd can be used to validate your build.xml and in fact it probably does validation when you call a task. Its really straight forward and easy to use - all the tasks (built-in and optional) are in the docs. Its really intuitive - for instance: <mkdir dir="c:\mydir" /> will create a new directory and <echo>This is a message</echo> will echo a message when you call the task. I don't know of any other sites for Ant but I've never needed one - all the information, including tutorials, is on the Ant site. I hope this helps, Cheers, Steve
Hi, You just need to download Ant. The download comes with the Apache Crimson XML Parser - though you can change it for another JAXP compliant parser but I've never needed to. The only other thing you need is a JDK on your system. You then set the ANT_HOME environment variable and off you go! Cheers, Steve
Always! Wait. Never. Shut up. Look at this tiny ad.