i haven't had a chance to try for myself, but if i...
# sdf
d
i haven't had a chance to try for myself, but if i organize my custom objects as: • Objects/myCompany/Scripts/UserEvents • Objects/myCompany/Scripts/Client and
deploy.xml
is as such:
Copy code
<objects>
  <path>~/Objects/*</path>
</objects>
will that work?
m
Yes. SDF will recursively pick up anything under the /Objects folder.
t
It also allows you to explicitly define which objects go in. So instead of `~/Objects/*`… you can do
~/Objects/Scripts/*
or even `~/Objects/Scripts/Client/Transactions.js`… You can even have multiple lines in your deploy.xml file, one per object if necessary.
e
^ Is there a bug related to that functionality and validation right now? I had a project set up that way where I had
/Objects/Staging/
and
/Objects/Production/
(for a very specific use case, not a long-term project), and even with
/Objects/Production/
set in my
deploy.xml
, everything in
Staging
was still getting validated causing the project to fail
m
Hmmm, that sounds like a bug. Was the validation being done client side or server side?
e
Both
I could still accomplish what I needed by moving
Staging
outside of
Objects/
but it seems like I shouldn't have to do that
m
You are correct. This will get fixed soon (I think the release of April 18th) where our tools are only going to zip and send to the server what is referenced in the deploy file
d
nice! I've scripted my own deploy.xml parser to zip only those specified files/objects
will be nice to have native support for that
m
Yep, it’s coming.