[svn] 3214: Make sure we clean up all the files that javacc generates.

Revision: 3214
Author: [email protected]
Date: 2008-09-15 15:48:27 -0700 (Mon, 15 Sep 2008)
Log Message:
Make sure we clean up all the files that javacc generates.
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/services/messaging/selector/build.xml

Ok, this is a rather complex scenario and I'm not quite sure if I got the correct picture of what you're doing, so maybe I'm going in the wrong direction with this...
First of all, you should distinguish between threads and processes. A thread is a strand of program execution within a process. A process is an application running on the operating system. Your java application is a process, and it may include several threads. Runtime#exec(...) will actually invoke a process, that is, it will start a program which runs asynchronously and (more or less) independant from the JVM. You'll need to wait for this process to finish before proceeding with the next script. Runtime#exec(...) will return an instance of Process, which provides the method Process#waitFor() to do just that.
Looking at your code except, you don't really have to start a separate java thread for what you're doing. Your main thread will immediately block and wait for the worker anyway, so you might just invoke Runtime#exec(...) directly.
By the way, if you want to wait for a java thread to terminate, there is a better way of doing it than looping while the thread is still alive. The Thread#join() method will block until the target thread terminates.

Similar Messages

  • I download a file in the torrent site which is MP4 but unfortunately i tried to delete it but i can not. but all the files that i have is easily to delete only MP4 files i can't delete in the download foldeer please try to help dont know what to do please

    i download a file in the torrent site which is MP4 but unfortunately i tried to delete it but i can not. but all the files that i have is easily to delete only MP4 files i can't delete in the download foldeer please try to help dont know what to do please

    Well you can sync your iPod/iPhone to yur computer or laptop then take the photos off of your iPod like taking photos of of a SD card (from a normal camera) or off of a USB..! Good Luck. plz tick this saying This solved my question if it helps you.

  • On Windows 7, neither my quicktime or iTunes will start. This started after I installed the newest update. All the files that are needed are there. I recently updated Quicktime to see if that would work, but it didn't.

    This started after I installed the newest update. All the files that are needed are there. I just updated Quicktime to see if that would work, but it didn't. I looked through some other discussions like this, and found out that all of my files are correct. Some people are saying that they needed to remove Filebot, but I can't find that on my computer. Help, please?

    This started after I installed the newest update. All the files that are needed are there. I just updated Quicktime to see if that would work, but it didn't. I looked through some other discussions like this, and found out that all of my files are correct. Some people are saying that they needed to remove Filebot, but I can't find that on my computer. Help, please?

  • I've lost all the files that were on the desktop.  All the folders  are still there with subfolders but the files have all disappeared.  Someone please help!

    It's been over a month since I accessed my files for work. (microsoft office, photos, videos) Today when I came in to work I realized that all the files on my desktop had disappeared. (it's just the desktop) I didn't do anything with my computer.  I didn't use my computer for almost the entire month.    I don't know where they are or what happened.  I really need these files back ASAP..... help please! 

    Unless the files were dumped in the Trash unintentionally, your files are still on your computer, somewhere. It's pretty easy to put files or folders in places without knowing it, but there is a good technique to find your data.'
    Think over a file or folder whose name is familiar. Then, press Cmd-Space at the same time, which brings up Spotlight - the easiest way to locate files, folders, history, and much more. If you end up with a blank the first time, try again until you have a hit. If you have a hit, note the location of the files/folder; it's likely that all of your lost documents are in the same place.
    Post if you have success, or need more help!

  • Log and Transfer Window unable to access all the files that were stored a P2 card

    I have a 64gb P2 card that was filled to capacity (63.09gb) on a recent shoot with a Panasonic HPX170 camcorder.  An addlitional 16gb card was in the second slot.
    I transferred the files from the 64gb P2 card to my iMac as usual, and did not see any files to transfer on the second card.  When accessing those files in FCP 6.0 I only see part of the files with the last one listed as "incomplete".  Four files that I see in the P2 card transfer folder do not show up in the Log and Transfer.   The LASTTEXT Clip file was transferred with a 3:07pm time, the inaccessible files end with a 3:06pm time.
    I have the original 64gb P2 card in tact so I re-transferred all contents to my computer and into a new folder.   When I opened a new project to see if I could access all the files, only the files I previously was able to access came up. 
    Have I created a FCP Log and Transfer and just need to reset something in FCP?  Is there a way to recover the data/restore a path to the data via FCP so I can access all the  files or is that a Panasonic issue? 

    Oy,  If it's the second or first half of a spanned clip that's missing, FCP will not import, and the camera cannot repair.  There is nothing to repair, according to the camera. Files are just missing.
    There are third party MXF software options that allow FCP to import the P2 files natively, without converting to QT.  I wonder if they will see the MXF files, or if they too need the complete file to do so.  I think most have demos. 
    Calibrated Softare has MXF import:
    http://www.calibratedsoftware.com/products.asp
    Then there's MXF4Mac:
    www.mxf4mac.com
    And Raylight.
    http://www.dvfilm.com/raylight/

  • How can I populate my PC HD with all the files that are currently on my iPod Classic?

    I think I've changed PCs three times since I've had my iPod Classic 80 gb.
    I think because of this, I have lost copies of files on my PC along the way (probably some of them remained in the earlier PCs and never made it to my current PC) although everything still seems to be on my iPod. So, I often get the message "Cannot locate file."
    Is there a way to populate my current PC with all the files I have on my iPod?
    Simply syncing my iPod doesn't seem to do the trick.
    Thanks for the help!

    You cannot use an iPod backup to restore to an iPad, nor can you use an iPad backup to restore to an iPod.
    Some apps support data syncing through iCloud, but this feature needs building into the app by the developer. If your app doesn't support this, then I believe there is no way to transfer the data between your two devices.

  • Newbie Question...  How do you make sure java can find all the imports

    Hi everyone,
    I am new to Java and so far I really like it. But I am having problems porting applets to my websites. How can you make sure that all the references can and will be found in the applet...
    for example,
    I import javax.media.ControllListener in a project I am using and it works great in the applet viewer but when I try to port this to my website I'm working on, java can't find it. I really would appreciate any help on this cause then I would have java power :) and will keep me from losing my hair :).
    Thanks for those who help me.
    - Stan

    Hey jwenting,
    Thanks for the quick response. Classpath definitely makes sense so I have been reading up on that... But do you include .classpath file in your website too? And how would you reference it if you need to reference it?
    - Stan

  • How to display all the files that are selected using JFile chooser

    please hepl me i m posting my code here.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    public class browser extends JFrame
    String curDir;
    JLabel statusbar;
    public browser()
    super("File Chooser Test Frame");
    setSize(1050,600);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    curDir = System.getProperty("user.dir") + File.separator;
    statusbar = new JLabel("Output of your button choice goes here!");
    Container c = getContentPane();
    c.setLayout( null );
    JButton openButton = new JButton("Browse file");
    JButton dirButton = new JButton("Pick Dir");
    JButton resetButton = new JButton("Reset");
    JButton submitButton = new JButton("Submit");
    final JTextArea tf = new JTextArea(100,50);
    final JList l1 = new JList("list");
    tf.setEditable(true);
    // add the open FILE chooser
    openButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
         JFileChooser chooser = new JFileChooser(curDir);
         chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
         chooser.setMultiSelectionEnabled(true);
    //Java 1.6 can use FileNameExtensionFilter class
    // FileFilter filter=new FileNameExtensionFilter("HTML file","htm","html")
    // chooser.addChoosableFileFilter(filter);
    //Prior versions must use external extension of FileFilter class (ie ExtFilter)
    //ExtFilter requires separate compile to enable choosable selection
         String[] html = new String[] {"htm","html","xhtml"};
         int option = chooser.showOpenDialog(browser.this);
         if (option == JFileChooser.APPROVE_OPTION)
         File[] sf = chooser.getSelectedFiles();
         String filelist = "nothing";
         try
         if (sf.length > 0) filelist = sf[0].getCanonicalPath();
         for (int i = 1; i < sf.length; i++)
         {filelist += ", " + sf[i].getCanonicalPath();
    tf.setText("our choices" + filelist);
         catch (IOException evt) {System.out.println("Exception: "+evt);}
    statusbar.setText("Your choices: " + filelist );
    // String[] text = new String[100];
    //getChars(0,100,text[],0);
    l1.setText("your choices \n" + filelist);
         else {statusbar.setText("You cancelled!");}
    // add the open DIRECTORY chooser
    dirButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    JFileChooser chooser = new JFileChooser(curDir);
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
         chooser.setMultiSelectionEnabled(false);
    int option = chooser.showOpenDialog(browser.this);
    if (option == JFileChooser.APPROVE_OPTION)
    File[] sf = chooser.getSelectedFiles();
    String filelist = "nothing";
    try
    if (sf.length > 0) filelist = sf[0].getCanonicalPath();
    for (int i = 1; i < sf.length; i++)
              {filelist += ", " + sf[i].getCanonicalPath();}
         catch (IOException evt) {System.out.println("Exception: "+evt);}
    statusbar.setText("You chose " + filelist);
         else {statusbar.setText("You cancelled!");}
    System.out.println("Example of ZIP file creation.");
    // Specify files to be zipped
    String[] filesToZip = new String[1];
    filesToZip[0] = "filelist";
    byte[] buffer = new byte[18024];
    // Specify zip file name
    String zipFileName = "example.zip";
    try {
    ZipOutputStream out =
    new ZipOutputStream(new FileOutputStream(zipFileName));
    // Set the compression ratio
    out.setLevel(Deflater.DEFAULT_COMPRESSION);
    // iterate through the array of files, adding each to the zip file
    for (int i = 0; i < filesToZip.length; i++) {
    System.out.println(i);
    // Associate a file input stream for the current file
    FileInputStream in = new FileInputStream(filesToZip);
    // Add ZIP entry to output stream.
    out.putNextEntry(new ZipEntry(filesToZip[i]));
    // Transfer bytes from the current file to the ZIP file
    //out.write(buffer, 0, in.read(buffer));
    int len;
    while ((len = in.read(buffer)) > 0)
    out.write(buffer, 0, len);
    // Close the current entry
    out.closeEntry();
    // Close the current file input stream
    in.close();
    // Close the ZipOutPutStream
    out.close();
    catch (IllegalArgumentException iae) {
    iae.printStackTrace();
    catch (FileNotFoundException fnfe) {
    fnfe.printStackTrace();
    catch (IOException ioe)
    ioe.printStackTrace();
    c.add(openButton);
    c.add(dirButton);
    c.add(statusbar);
    c.add(resetButton);
    c.add(submitButton);
    //c.add(tf);
    c.add(l1);
    Insets insets = c.getInsets();
    Dimension size = openButton.getPreferredSize();
    openButton.setBounds(745 + insets.left,115 + insets.top, size.width, size.height);
    size = dirButton.getPreferredSize();
    dirButton.setBounds(755 + insets.left,165 + insets.top, size.width, size.height);
    size = statusbar.getPreferredSize();
    statusbar.setBounds(755 + insets.left,215 + insets.top, size.width, size.height);
    size = resetButton.getPreferredSize();
    resetButton.setBounds(755 + insets.left,265 + insets.top, size.width, size.height);
    size = submitButton.getPreferredSize();
    submitButton.setBounds(755 + insets.left,465 + insets.top, size.width, size.height);
    size = tf.getPreferredSize();
    tf.setBounds(25 + insets.left,5 + insets.top, size.width + 150, size.height + 430);
    size = l1.getPreferredSize();
    l1.setBounds(25 + insets.left,5 + insets.top, size.width + 150, size.height + 430);
    setSize(1000,800);
    setVisible(true);
    public static void main(String[] args)
    new browser();

    Start by defining "display". Then continue by reading this:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • Make sure to check-in all of your assets.

    The installation process removes the local copy of the applications.
    That means, if you have assets that are checked-out, you will loose the latest changes since they won't reside on the server.
    Just make sure to check-in all you files before doing the upgrade.
    Jasmin

    I think this is related to the fact that I didn't have SP1 applied to my Workbench.
    It actually doesn't remove the local files, but it uses the new SP1 folder structure, which is probably why all my applications were removed from my Application view.
    So be aware that if you don't have SP1, your Application view will become empty and you will have to get the applications again from the server. If you had assets that were not checked-in, you can always get them from the old folder structure under C:\Documents and Settings\Administrator\Workbench ES2\localhost_NameOfApplication.
    Jasmin

  • Pacman to show all the files inside a package that is not installed

    Can pacman list out all the files that any packages provides without having that package installed? I learned that pacman -Ql linux does this but the linux packages is installed on my system. Thanks!

    I am trying to use it but it doesn't work right with my options. I want to find any package that gives a directory called "russian" but it isn't finding one I know does called "festvox-ru" as I show you:
    % pkgfile -svid russian
    extra/licq 1.7.1-5 /usr/share/licq/translations/RUSSIAN
    community/gnustep-base 1.24.5-2 /usr/lib/GNUstep/Libraries/gnustep-base/Versions/1.24/Resources/Languages/Russian
    community/lout 3.40-1 /usr/lib/lout/include/russian
    community/nltk-data 2.0-7 /usr/share/nltk_data/corpora/stopwords/russian
    community/rawtherapee 1:4.0.11-1 /usr/share/rawtherapee/languages/Russian
    Here you see the "russian" directory inside my filesystem with that package:
    /usr/share/festival/voices/russian
    Last edited by maggie (2013-09-23 14:34:13)

  • Locating all the files for iPhoto

    I have run into a serious problem with iPhoto 5.0.4. I need to be able to trash ALL of the files that iPhoto stores in the computer so that I can start from scratch. Does anyone know where ALL of the files are located? There must be some hidden files, because the problem I am having won't disappear when I re-install iPhoto. Problem: When I launch iPhoto, it opens with "Loading photos..." in an endless loop. It won't recognize my camera and it won't quit when told to do so. I have tried to create a new library, but it doesn't help. I have tried to re-build the library, which also does not help. I have tried to trash all the files that I can find related to iPhoto, but the problem persists. I am desperate. Hope someone out there can shed some light on my dilemma.
    Powermac G4 Quicksilver   Mac OS X (10.4.3)  

    Ernie:
    iPhoto copies the image files that you import into it's iPhoto Library folder that's located in your User/Pictures folder. If you want to start over from scratch, and have backup copies of the photos, you can just drag that folder to the Trash and empty it. FYI here are two Apple KB documents that you should be aware of, particularly the second one:
    iPhoto Library Description
    Don't tamper with files in the iPhoto Library folder from the Finder
    Before you do that check out this thread to see if that issue may be the problem or part of it. If that's the case, you won't be able to fix it by trashing the library and starting over. Good luck.

  • I bought a new laptop how do I sync my ipad and get all the files synced to my old laptop

    I bought a new laptop. Can I sync my ipad to it?  And how do I get all the files that were synced to my old laptop?

    Do you still have your old computer with your media (music, films, etc) on it so that you can copy them over from it ? If you do then there are a number of methods on this page for how you could copy it over from it : http://support.apple.com/kb/HT4527
    If not, and if you don't have your content elsewhere (e.g. music that wasn't bought from iTunes), then there are some programs listed half-way down this page for how to copy content back from a device : https://discussions.apple.com/docs/DOC-3991
    For iTunes downloads you should be able to copy them from your iPad via File > Devices > Transfer Purchases
    Also see this page for syncing to a new computer : https://discussions.apple.com/docs/DOC-3141
    If you want to copy files/documents from the iPad then how you do so depends upon what app that they are in and what the app supports e.g. file sharing on the Apps tab in iTunes, transfer via your wifi network, email, dropbox etc

  • My old computer (a Sony) with my iTunes crashed. I have a new MAC and want to make sure I can keep all of my music (mostly from old CD's that have been lost). I bought iTunes match hoping that would work but it isn't using the data on my phone. HELP!

    My old computer (a Sony) with my iTunes crashed. I have a new MAC and want to make sure I can keep all of my music (mostly from old CD's that have been lost). I bought iTunes match hoping that would work but it isn't using the data on my phone. HELP!

    Since you have purchased a new Mac (which, BTW, is not typed in all capitals) why not buy a Time Capsule <http://www.apple.com/airport-time-capsule/> which is designed specifically to work with OS X and Time Machine?
    You don't say what part of your Sony "crashed." If it was not the HDD it is possible to take the computer apart, put the HDD in an external case, then recover the data off of it (including the music) simply drag-n-drop. If it was the HDD that "crashed" that makes it more difficult.
    If you are able to recover the music from the Sony you can then add it to the iTunes library on the Mac and iTunes Match will then scan, match and upload the tracks to be mirrored in the cloud.

  • What are correct settings on iCloud to make sure photos are on all devices?

    What are correct settings on iCloud to make sure photos are on all devices?

    If your Westell modem (actually, it is likely a gateway...a combination modem/router) is set up for "PPP is on the modem", then the AEBS should be configured to Connect Using = DHCP or Ethernet. The AEBS also needs to be configured in Bridge Mode.
    Open AirPort Utility, click on the AEBS, and click Edit
    Click the Internet tab and change to setting to "Connect Using DHCP"
    Then click the Network tab and set the Router Mode for "Off (Bridge Mode)"
    Update to save changes and restart the network by powering everything off in any order that you want. Then start the Westell device first, followed by the AEBS a minute later, etc until everything is powered back up.
    This type of setup may work OK for you.
    If not, you will need to change the Westell setup to "PPP is on the router" and then configure the AEBS to provide the PPPoE service as you did originally.
    AT&T does generally advise that the modem should be in "Bridge Mode" or "PPP is on the router" when other routers are used with the "modem". See this document for more info:
    http://www.att.com/esupport/article.jsp?sid=KB401764&cv=801,902&title=Connecting +a+non-AT%26T+provided+router+to+your+AT%26T+Internet+connection#fbid=43oi_bcpYy U

  • Webpage previews is no longer caching pages. How do I make sure settings will cache all pages visited?

    Webpage previews is no longer caching pages. How do I make sure settings will cache all pages visited?

    The cache may be full ..
    Using Safari ??
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

Maybe you are looking for

  • Warranty and moisture indicators

    Hello, I just wanted to inform other iPhone users that there are 2 externally visible moisture indicators that are white normally but turn red when exposed to moisture. My phone has the one at the charger plug tripped but the phone works perfectly. T

  • ThinkVantage Fingerprint Software 5.9.9.7282 stops working, crashing on 64-bit Windows 7.

    ThinkVantage Fingerprint Software 5.9.9.7282 stops working, crashing on 64-bit Windows 7. Issue producing on Lenovo ThinkPad W530.  Each time I tried to start the ThinkVantage Fingerprint Software, it is crashing with following error : [Window Title]

  • Safari won't open I get plug-in ct_plugins ERROR

    *when i open safari i get the following error message:* *"The application Safari quit unexpectedly. The problem my have been caused by the ct_plugins plug-in.* *this is the report.* Model: MacBook4,1, BootROM MB41.00C1.B00, 2 processors, Intel Core 2

  • Does anyone no if Apple can wipe your phone if it has been stolen?

    I got my phone stolen last night, and was wondering if apple would be able to remotely wipe everything off the phone as I do online banking and got some personal stuff on my phone.. I didnt have it step up for my phone to wipe everything after 10 sho

  • Apple TV and Pioneer 50in Plasma

    Hi All This is my first time posting here. I just purchased an Apple TV and have tried to connect it up. I have a pioneer set top box, pioneer DVD player and recorder and pioneer Receiver. I can see an HDMI plug on the receiver but when I connect it