• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

VAJ 3.5.3 : Projects,Packages and Resources

 
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Some clarifications required on the subject!

  1. When I delete a Project from the workspace, the corresponding Resources in the project_resources directory is also deleted.Does this mean we need to backup the resources before deleting the project from the workspace?I understand that the project can be retrieved from the respository.However, I am surprised to see the resources also being retrieved!I thought resources are not stored in the repository, so how is it getting retrieved?Also, will it make a difference if the project is a versioned or a open edition?
  2. I first version a Project to say 1.0.Therafter I copy some resource files manually (outside VAJ using Windows Explorer) in the corresponding project directory (which is in the project_resources folder) and then save the workspace.Then I delete the project from the workspace.I then add the project to the workspace using the Repository Explorer.I happen to see that the resources that I recently added are lost.Why should this happen?

  3. The workaround for the second case was to version the project in the workspace as a new edition.(I had actually purged the versioned edition of the project from the repository,created an open edition of the existing project, by making some changes in the code, versioned this project and then compacted the repository).If we then add the project in the workspace from the Repository Explorer we will be able to see the recently added resources exists in the project directory under project_resources.
    Your views please!
    Thanks,
    Sandeep
 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
I think bith questions can be answered with the same explanation
The resource folder holds all files needed for items in your workspace
so if you delete something from your workspace you no longer need the resources so that get deleted too
When you bring it back from the repository it brings back the resources as well so you can properly run you class.
By adding to your resources from outside VAJ since you did not save your workspace it never went into the repository as VAJ did not know about it so when you bring it back it justs brings back the old resources
I think if you would save your workspace even without a new version you would see the added resources
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Fred,
It seems that just saving the workspace doesnot place the new resource file (which has been added from outside VAJ) into the repository.You need to version the Project for VAJ to consider this as a project resource - only then we can see the resource in the Repository Explorer.
Why is versioning different to open edition in this case?What happens technically when you version a package/project with respect to resources?
Comments, please!
Sandeep
[This message has been edited by Desai Sandeep (edited August 12, 2001).]
 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For documentation on this, try Help - PDF, select "integrated development environment", and look at the bottom of page number 1 (first page after Table of Contents) and page 9. Or, if you don't have the PDF files installed, Help - Topics - Concepts - Integrated Development Environment - Resource files and directories.
 
What's brown and sticky? ... a stick. Or a tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic