Problem in copying the file to right directory

Hi
I am trying to copy a file uploaded by the user to a new directory. the dir structure is
/data/temp/username/. The username dir is created at the time of upload. so if any user with the username say "bob" logs in, a directory bob is created under /data/temp.
the file uploaded by the user needs to be stored under "bob" dir ....in my case its being stored in /data/temp.
When i try to print file.getAbsoluetPath it shows me as the file is stored under bob....so i get /data/temp/bob/filename.doc
but when i check the dir the file is actually stored under temp & not bob.
Can anyone help please..
Thanx

Hi there
Thanx for you reply.
I read the snippet, but it says about Windows, I am working on Linux. Wont that make a diference when i getAbsoluetpath.. Coz the print statement shows me the path as /data/temp/username
Also i ran a prototype of the code on windows and it seems to work fine ... like it creates a user directory under C:/Java/temp and then stores the file under the new created user directory.
If the code would help to think in a better way heres it:
/* tempdir is already defined in config file as /data/temp .. I am just calling it here to create
the new directory under it.. this line works fine */
File usrDir = new File(tempDir, username);
boolean dirMade = usrDir.makeDir();
String path = dirMade.getAbsolutePath();
File fupload = new File(path, fileName);
/* in the above line, fileName is the name of the file uploaded by client (user) */
String filepath = fupload.getAbsolutePath();
/* in tha bove line gives the path as /data/temp/username/filename.ext */
but when i go to the directory its actually stored as /data/temp/username and /data/temp/filename.ext
Any suggestions please
Thanx

Similar Messages

  • Problem in copying the file

    i had created a frame in which iam getting a source file and then copies the file to certain location...the problem is when i copy a large file it is doing well for the first time but when the second time while iam copying exception occurs like this
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    iam using the code
    public static void copy(File source, File dest) throws IOException {
         FileChannel in = null, out = null;
         try {         
              in = new FileInputStream(source).getChannel();
              out = new FileOutputStream(dest).getChannel();
              long size = in.size();
              MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);
              out.write(buf);
         } finally {
              if (in != null)          in.close();
              if (out != null)     out.close();
        }how to solve this

    Do you simply want to copy the file. Try, not using many non-instrictive data types, because these use many extra variables and you end up using a lot more memory than you would have req.
    Eg-
    public void copy(File source,File dest) throws IOException{
         FileInputStream fins=new FileInputStream(source);
         byte[]b=new byte[(int)fins.length()];
         fins.read(b);
         fins.close();
         FileOutputStream fos=new FileOutputStream(dest);
         fos.write(b);
         fos.close();
    }This is code is not a solution, because here i am reading all file at once. This is basically to show you a method.
    In real situation you can set the size of byte[]b to 1024, and loop util read(b); method returns -1.

  • Problem in Placing the file in  Archive directory

    Hi,
    I am trying to read a file and after processing , I want to archive and place in other directory. Though i am able to read and insert the data succesfully into database but not able to place in 'Archive' Directory.
    What might be the reason any idea???
    I heard there is a bug in 10.1.3.3.0 version... Is this true???
    Any help in this regard would be appreciated.
    Thanks,
    Pallavi
    Message was edited by:
    user614169
    Message was edited by:
    user614169

    I don't think there is a bug related to this in 10.1.3.3
    I am using SOA and JDeveloper 10.1.3.3 and its working fine
    Are u checking the archive option in file adapter?( Check wsdl for entry)
    Also are you giving the physical location or logical one?
    try with physical path if u are not doing it already.
    And also, i don't think files get archived after processing, they get archived at the same time the file adapter is in action.
    Regards
    Ketan

  • Problem in copy the file from WAR

    I have the following requirement.
    I have one file in WAR file which is to be copied to sme location in server during Server start after deployment.
    I am using one servlet, which is being loaded during startup. I have written the code in "init" method of servlet.
    try {
    String fontFolderString = config.getServletContext().getInitParameter("WORKING_FOLDER")+ "\\fontFolder";
    BufferedInputStream bis = (BufferedInputStream)this.getClass().getClassLoader().getResourceAsStream("\\image\\a.jpg");
    File in = new File("");
    File out = new File(fontFolderString);
    BufferedInputStream bis = new BufferedInputStream(new FileInputStream(in));
    BufferedOutputStream bos = new BufferedOutputStream(
    new FileOutputStream(out));
    byte inArr[] = new byte[bis.available()];
    int size = bis.read(inArr, 0, inArr.length);
    bos.write(inArr, 0, size);
    bis.close();
    bos.close();
    } catch (Exception e) {
         e.printStackTrace();
    }image folder as mention in the line "BufferedInputStream bis" is in the directlry where servlet is there.
    Here "bis" is being returned as null.
    Please provide me the pointers what is wrong above
    ~Aman

    The line of code
    getClass().getClassLoader().getResourceAsStream("\\image\\a.jpg");searches the file a.jpg inside a dicrectory image located in the classpath of the web application. For example in web-inf/classes... The position of the servlet is insignificant.
    If you are looking for the file in the web context (for example in the image folder of your web application you should use:
    config.getServletContext().getResourceAsStream("\\image\\a.jpg");

  • How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in?

    How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in? This application must be in Lab View 8.

    you mean something like this (see below)?
    Now you may have to implement code to check if the destination folder exists and to create it, etc.  But if you use the Front Panel Control to select the destination folder, it should be okay.
    Not the best implementation, mind you but you'll get the idea..
    Message Edited by JoeLabView on 04-18-2007 03:43 PM
    Attachments:
    copy folder contents.PNG ‏10 KB

  • Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site

    Have an existing ex2010 sp3 organization.
    Could not run ex2013cu1 setup from my newly built 2012 server, getting the error in the subject line.  I used the command line to run the AD preparation steps successfully from my 2012 DC/GC, then tried to run setup again from the new 2012 server and
    still get the same error.  The error itself in the log is pretty useless:
    [05/07/2013 01:19:13.0137] [0] **********************************************
    [05/07/2013 01:19:13.0137] [0] Starting Microsoft Exchange Server 2013 Cumulative Update 1 Setup
    [05/07/2013 01:19:13.0137] [0] **********************************************
    [05/07/2013 01:19:13.0152] [0] Local time zone: (UTC-08:00) Pacific Time (US & Canada).
    [05/07/2013 01:19:13.0152] [0] Operating system version: Microsoft Windows NT 6.2.9200.0.
    [05/07/2013 01:19:13.0152] [0] Setup version: 15.0.620.29.
    [05/07/2013 01:19:13.0152] [0] Logged on user: DOMAIN\ADMINISTRATOR.
    [05/07/2013 01:19:13.0168] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
    [05/07/2013 01:19:13.0168] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
    [05/07/2013 01:19:13.0215] [0] Command Line Parameter Name='sourcedir', Value='\\h1\f$\junk\installers\server\Exchange\2013cu1'.
    [05/07/2013 01:19:13.0215] [0] Command Line Parameter Name='mode', Value='Install'.
    [05/07/2013 01:19:13.0215] [0] RuntimeAssembly was started with the following command: '/sourcedir:\\SERVER\f$\junk\installers\server\Exchange\2013cu1 /mode:Install'.
    [05/07/2013 01:19:13.0215] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
    [05/07/2013 01:19:13.0793] [0] Finished loading screen CheckForUpdatesPage.
    [05/07/2013 01:19:38.0762] [0] Finished loading screen UpdatesDownloadsPage.
    [05/07/2013 01:19:40.0496] [0] Starting file's copying...
    [05/07/2013 01:19:40.0496] [0] Setup copy files from '\\SERVER\f$\junk\installers\server\Exchange\2013cu1\Setup\ServerRoles\Common' to 'C:\Windows\Temp\ExchangeSetup'
    [05/07/2013 01:19:40.0700] [0] Finished loading screen CopyFilesPage.
    [05/07/2013 01:19:40.0840] [0] Disk space required: 1292445007 bytes.
    [05/07/2013 01:19:40.0840] [0] Disk space available: 23767240704 bytes.
    [05/07/2013 01:19:59.0762] [0] File's copying finished.
    [05/07/2013 01:19:59.0965] [0] Finished loading screen InitializingSetupPage.
    [05/07/2013 01:20:02.0934] [0] Setup is choosing the domain controller to use
    [05/07/2013 01:20:09.0325] [0] Setup is choosing a local domain controller...
    [05/07/2013 01:20:11.0794] [0] [ERROR] Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency. 
    See the Exchange setup log for more information on this error.
    [05/07/2013 01:20:11.0794] [0] [ERROR] Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency.
    [05/07/2013 01:20:11.0809] [0] Setup will use the domain controller ''.
    [05/07/2013 01:20:11.0809] [0] Setup will use the global catalog ''.
    [05/07/2013 01:20:11.0825] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=local'.
    [05/07/2013 01:20:11.0919] [0] Exchange organization container for the organization is 'CN=DOMAIN,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=local'.
    [05/07/2013 01:20:11.0966] [0] Setup will search for an Exchange Server object for the local machine with name 'WEX1'.
    [05/07/2013 01:20:12.0028] [0] No Exchange Server with identity 'WEX1' was found.
    [05/07/2013 01:20:12.0044] [0] The following roles have been unpacked:
    [05/07/2013 01:20:12.0044] [0] The following datacenter roles are unpacked:
    [05/07/2013 01:20:12.0044] [0] The following roles are installed:
    [05/07/2013 01:20:12.0059] [0] The local server does not have any Exchange files installed.
    [05/07/2013 01:20:12.0075] [0] Server Name=WEX1
    [05/07/2013 01:20:12.0137] [0] Setup will use the path '\\SERVER\f$\junk\installers\server\Exchange\2013cu1' for installing Exchange.
    [05/07/2013 01:20:12.0137] [0] The installation mode is set to: 'Install'.
    [05/07/2013 01:20:27.0591] [0] An Exchange organization with name 'DOMAIN' was found in this forest.
    [05/07/2013 01:20:27.0591] [0] Active Directory Initialization status : 'False'.
    [05/07/2013 01:20:27.0591] [0] Schema Update Required Status : 'False'.
    [05/07/2013 01:20:27.0591] [0] Organization Configuration Update Required Status : 'False'.
    [05/07/2013 01:20:27.0591] [0] Domain Configuration Update Required Status : 'False'.
    [05/07/2013 01:20:27.0841] [0] Applying default role selection state
    [05/07/2013 01:20:27.0872] [0] Setup is determining what organization-level operations to perform.
    [05/07/2013 01:20:27.0872] [0] Because the value was specified, setup is setting the argument OrganizationName to the value DOMAIN.
    [05/07/2013 01:20:27.0872] [0] Setup will run from path 'C:\Windows\Temp\ExchangeSetup'.
    [05/07/2013 01:20:27.0888] [0] InstallModeDataHandler has 0 DataHandlers
    [05/07/2013 01:20:27.0888] [0] RootDataHandler has 1 DataHandlers
    [05/07/2013 01:20:27.0903] [0] Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency.  See
    the Exchange setup log for more information on this error.
    [05/07/2013 01:20:27.0935] [0] [ERROR] Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency. 
    See the Exchange setup log for more information on this error.
    [05/07/2013 01:21:04.0154] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
    [05/07/2013 01:21:04.0154] [0] End of Setup
    [05/07/2013 01:21:04.0154] [0] **********************************************

    Hi,
    The cause is clearly described in the log:
    [05/07/2013 01:20:11.0794] [0] [ERROR] Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency. 
    See the Exchange setup log for more information on this error.
    [05/07/2013 01:20:11.0794] [0] [ERROR] Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency.
    I'd suggest you check NIC settings and AD configuration.
    Hope it is helpful.
    Fiona Liao
    TechNet Community Support

  • I had to transferr my music files from one computer to another by directly copying the files from the hard drive to a new drive.  Itunes recognized the files and I was able to load in new songs.  The new songs won't sync with ipod.  Ideas?

    To copy the files I had to remove the hard drive and direct copy them to an expansion drive on another machine.  ITunes recognized the copied files and operates correctly on the computer.  I was able to download additional songs to ITunes on the computer without problem.  The IPod however will not recognize the new songs, does an abreviated sync process and gives a message that the IPod cannot sync because files are being used by another application.  It is also does not want to accept the disconnect command.  Any suggestions on how to solve the sync problem?

    how did you save the songs? can you play the songs? have you restarted the computer?

  • I can't open my iphoto library on an external disk (78 gb ntfs); if i copy the files on the iMac the file is smaller and not usable. how can i recover my photo?

    hi all,
    i'm using the last version of iPhoto and i save my library on a western digital external USB drive; the drive is formatted in NTFS; i usually use tuxera to access and browse the files.
    Unfortunately, i don't know why, i access this drive in read only mode, so iPhoto doesn't accept the library any more; i tried to copy the library on the iMac but the copied file is really smaller (54 gb instead on the 78 on the drive), and iphoto doesn't accept it.
    i need to find a solution and to recover my library, i've no other copies?!
    tuxera doesn't open any other ntfs drive i think the problem is there, but i have to finf other solutions to recover my photos.
    thank you all for any suggestion.

    This problem is entirely due to this:
    the drive is formatted in NTFS
    iPhoto needs to have the Library sitting on disk formatted Mac OS Extended (Journaled). Users with the Library sitting on disks otherwise formatted regularly report issues including, but not limited to, importing, saving edits and sharing the photos.
    Do you get any error messages when you try and copy the file back to your Mac?
    Do you have a back up?

  • Retreiving the file names from directory inside another directory from application server

    Hi,
    I had a problem in retreiving the file names from a directory inside another directory.
    I tried using the FM's  SUBST_GET_FILE_LIST, RZL_READ_DIR_LOCAL and EPS_GET_DIRECTORY_LISTING
    But here I am getting only one directory details.
    Actually my file is located a directory inside one more directory and one more directory and inside the files are located.
    i.e total 3 directories inside the 3rd one my files are there.
    I need to read the latest file name in the directory.
    So that i can do some manipulation after getting the file name.
    Is there option like OPEN DATASET , READ DATASET and CLOSE DATASET?
    Can anyone please let me know How can i acheive this one.
    Regards
    Ram

    Hi Ram,
        Following thread can be helpful for you, were it shows in the tables structure rsfillst a field RSFILLST-TYPE whether its a directory or file..........
    http://scn.sap.com/thread/865272
    thanks and regards,
    narayan

  • Problem regarding Configuring the File Adapter

    Hi,
    I am making a Flat File to XML File Scenario. I have made all the Necessary developments and the Routings in the Integration Repository and the Integration Directory. The Sender Communication Channel Uses the Message Protocol "File Content Conversion". All the required steps have been done. We have installed the System and also the Basis Team has done the Post Installation Activities.
    <b> The Problem is that the "File is not getting picked up". When checking the RWB and henceforth the Adapter Monitoring we see that the File Adapter is disabled and the XI and the BC adapters are green. Previously we were on SP9 and now we are on SP14. The SAP Basis is at 640 and SP9 and the SAP ABAB is on 640 and SP9.</b>
      We are also unavailable to see the File Communication Channels that we have created. When the Tcode "sxi_cache is run it is giving an error that Cache not refreshed andon refreshing various times too the Cache is not Refreshed.
    Please Suggest us what we should do. Eagerly waiting for a reply and Thanking in Anticipation. Do we need to make some for configurations for that.
    Warm Regards
    Chakra and Somnath

    Hi Somnath,
    If the sender file adapter is up and running and even after that if you find some problem, the first thing you need to do is check if your file has been picked. The easiest way to check the same is to set the mode to DELETE, that is the file gets deleted as soon as it is picked. If your file has not been picked then the reasons for the same could be the following.
    - The path that you specified while configuring the sender communication channel would have been wrong.
    - While specifying the file name take care as it is case sensitive.
    - If you require content conversion then make sure that the parameters entered at the time of configuration are all correct.
    Please go thru the following links to get a very clear picture of your requirement.
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/44/6c9442c22d1131e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8c/607fe4756b654ab9f420097c29f6e9/frameset.htm
    Also make sure that your content conversion is in sequence wrt Datat Type Sturcture.
    Go through these blogs below for more detail on the same:
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    I hope this would help you solve your problem.
    Regards,
    abhy
    Message was edited by: Abhy Thomas

  • Unix command to create a copy of file from unix directory

    Hi guys,
    what is the Unix command to create a copy of file from unix directory?
    Thanks a lot!

    If you haven't noticed, this is a ABAP forum.
    You can go to the UNIX thread instead and post it there,
    SAP on UNIX
    You can expect answers there

  • Microsoft.WebApplication.targets 182 5 error MSB3030 Could not copy the file because it was not found

    We use Visual Studio Online and the integrated continuous integration (build server) from Microsoft. We have a solution that contains multiple projects two of which are latest MVC projects. I updated a bunch of our Nuget packages yesterday and now we are
    getting a build error one of our MVC projects. Any help is greatly appreciated as I have exhausted my resources trying to understand why the error is occurring!
    We use nuget for our external libraries, the solution and projects and set to use Nuget Restore (no packages persisted in TFS).
    We updated Angular to the latest version using Nuget updates inside of visual studio. Here an excerpt from packages.config in the project file. The first block is what was found in the packages.config before the update and the second block is after the
    update.
    <package id="Angular.UI.Bootstrap" version="0.11.0" targetFramework="net451" />
    <package id="angularjs" version="1.2.23" targetFramework="net451" />
    <package id="Angular.UI.Bootstrap" version="0.12.0" targetFramework="net451" />
    <package id="angularjs" version="1.3.8" targetFramework="net451" />
    After I noticed the build error I scheduled another build with Diagnostic level logging turned on, here is the excerpt from the build highlighting the errors
    Task "Copy" (TaskId:395)
    16:42:43.027 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-animate.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.031 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-animate.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    Creating directory "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts". (TaskId:395)
    Copying file from "Scripts\angular-aria.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\angular-aria.js". (TaskId:395)
    Copying file from "Scripts\angular-aria.min.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\angular-aria.min.js". (TaskId:395)
    16:42:43.033 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-cookies.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.033 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-cookies.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.034 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-csp.css" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.034 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-loader.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.034 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-loader.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    Copying file from "Scripts\angular-messages.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\angular-messages.js". (TaskId:395)
    Copying file from "Scripts\angular-messages.min.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\angular-messages.min.js". (TaskId:395)
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-mocks.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-resource.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-resource.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-route.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-route.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-sanitize.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-sanitize.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-scenario.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-touch.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.037 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-touch.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.037 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.037 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    Copying file from "Scripts\bootstrap-select.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\bootstrap-select.js". (TaskId:395)
    Copying file from "Scripts\bootstrap-select.min.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\bootstrap-select.min.js". (TaskId:395)
    Copying file from "Scripts\bootstrap-select.js.map" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\bootstrap-select.js.map". (TaskId:395)
    I looked at the change log of my check-in and noticed that the errors occur for Angular script references that were updated. New angular references (adds in the TFS changeset) are being copied without errors. Example: angular-animate.js was edited
    in the Angular update in TFS but angular-aria.js is a new file in the package so new file in TFS. 
    Using Source Control Explorer I verified the location of the files, the new and the existing files from the Angular nuget package can all be found in the Scripts folder of the MVC project. I can also view the content of each file file without issue.
    The references in the project file (csproj) are all consistent too, I can't see any differences between the files that cause failure and those that do not. The following block is a direct copy/paste from the csproj file
    <Content Include="Scripts\angular-animate.js" />
    <Content Include="Scripts\angular-animate.min.js" />
    <Content Include="Scripts\angular-aria.js" />
    <Content Include="Scripts\angular-aria.min.js" />
    <Content Include="Scripts\angular-cookies.js" />
    <Content Include="Scripts\angular-cookies.min.js" />
    <Content Include="Scripts\angular-csp.css" />
    <Content Include="Scripts\angular-loader.js" />
    <Content Include="Scripts\angular-loader.min.js" />
    <Content Include="Scripts\angular-messages.js" />
    <Content Include="Scripts\angular-messages.min.js" />
    <Content Include="Scripts\angular-mocks.js" />
    <Content Include="Scripts\angular-resource.js" />
    <Content Include="Scripts\angular-resource.min.js" />
    <Content Include="Scripts\angular-route.js" />
    <Content Include="Scripts\angular-route.min.js" />
    <Content Include="Scripts\angular-sanitize.js" />
    <Content Include="Scripts\angular-sanitize.min.js" />
    <Content Include="Scripts\angular-scenario.js" />
    <Content Include="Scripts\angular-touch.js" />
    <Content Include="Scripts\angular-touch.min.js" />
    Is there anything I forgot to mention that would help me figure out what is going on?
    What else can I try with the exception of rolling back the changeset and re-adding the nuget package?
    Thank you very much in advance!
    -Igor
    -Igor

    Hi Igor,
    For your situation, make sure you checked in your source files after updating Angular. You can also check the whether the foders for the Angular reference are under source control in source settings tab of your build definition.
    You can also build locally using MSBuild to see if the building works fine. We have to make sure local build succeed before VSO build since TFS build use MSBuild as its default compiler. Check the links below to see if they are helpful:
    https://social.msdn.microsoft.com/Forums/en-US/f43ceb9e-f253-46e3-a496-05f8cd77f634/msb3030-could-not-copy-the-file-because-it-was-not-found-error?forum=winappswithcsharp
    https://social.msdn.microsoft.com/Forums/en-US/01a29ce7-da2a-40af-9dce-3db1f8998cc2/could-not-copy-the-file-consoleappnameexemanifest-because-it-was-not-found?forum=TFService
    Best regards, 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Restoring my mac book pro after copying the files off via target disk

    Hi guys any help would be great.
    I had a problem with my hard drive in my early MBP, after seeing an apple genius, who said it was mostly likely a software issue and wiping the disk and reinstalling everything shoudl fix it.
    So as i didnt have an up to date time machine back up, i used the target disk utility to copy the files from the drive over onto another mac (actualy on a networked harddrive)
    no i have completed a wipe, and reinstalled the operating system (snow leapeard as thats the last disc i had - MBP was on Lion prior to the issues)
    now i want to restore all my files from before.
    what is the best way to do this?
    can i just drag and drop each file from the networked hard drive back into the coresponding ones on my MBP?
    thanks

    Only your users files inside music, pictures, movies documents etc folders.
    Nothing in Library, nor Applcations, you do that you hose the account and the apps won't work anyway, at least most of them.
    or i will have to reinstall the aplications but i tunes and so on will be able to find the files?
    yes and reinport music into iTunes so it goes into the new itunes library file, ditto with iPhoto Library (old) righ click and "show package contents" and import the Originals folder contents into new iPhoto library.
    support files have paths in their files that go to the path on the origanl system, you changed that so the paths are off, so you import the original files again.

  • I have bought a photoshop elements and have installed it on my MacBookPro. I have just bought an iMac and what to install on this computer as well. The iMac does not have a disc drive. I have copied the file onto a remote hard drive and tried to install b

    I have bought a photoshop elements and have installed it on my MacBookPro. I have just bought an iMac and what to install on this computer as well. The iMac does not have a disc drive. I have copied the file onto a remote hard drive and tried to install but it thinks I have a pirate copy. What can I do?

    If you click the link in my first post in this thread, then click "still need help? Contact us" it takes you to a page that looks exactly like the page where you started, but isn't. Select PSE for the program you want help with, click "Activation and Signing In" for the problem area and you will see this:
    The gray area below the blue bar is a link to start a chat.

  • Upload all the files in a directory

    Hi,
    I have searched in forum for a solution to my problem (Upload all the files contained in a certain directory) but all I've found is solutions to upload a single file using the bean JspSmartUpload. I had myself used this bean to uploads files to an server, but files choosed by the user with the <input type="file">. What I'm wanting know is different and I can't find a solution to it. I've tried to change the jspsmartupload to do this but I'm having no success..
    Anyone can help?
    Thanks in advance,
    Nuno.

    I don't believe there's any support in pure html forms to accomplish this.
    The File class has a listFiles() method, that will return an array of all the files in a directory. As this code must run on the client machine, you will need to write an applet to accomplish this. You will also have to worry about the security sandbox, and sign your applet.
    To get each file to the server you will need to create a URL object, openConnection on it, set up a multipart form POST to it, and transfer the files, one by one.

Maybe you are looking for

  • My apple id keeps saying it is diabled

    I am so frustrated, I dont know why my Apple ID keeps saying it is disabled.

  • Looping over CFFILE only writes last line

    Here is the code in question: <CFSET LINECOUNT = 0> <cfloop list="#populate#" index="CL">       <CFOUTPUT>#CL#:<input type="text" name="#CL#"><BR></CFOUTPUT>       <CFSET LINECOUNT = LINECOUNT + 1>       <CFSET ThisNewLine = '<input type="text" name=

  • [SOLVED] Cantata won't work

    Hi! Whenever i start cantata (qt5 community build, version 1.4.0-1), i get an error : errno: Failed to open database file "/tmp/cantata/mpd/tag_cache": No such file or directory fatal_error: Couldn't stat parent directory of db file "/tmp/cantata/mpd

  • Using "bridge" on Airport Express N between two bornes.

    Hi, I have two Airport Extreme N base station, one is dedicated to be used with b & g cards and the other one with dedicated be used with "n" only compatible Mac. The link between the two Airport id done with an ethernet cable, The first Airport Expr

  • Installed but won't open new documents from iOS7

    Says installed but won't let me open any new documents, any thoughts?